Midnight Blue Game and Engine
Public Member Functions | Properties | List of all members
MB2D.IO.InputMap Class Reference

Maps commands to keys and trigger types More...

Collaboration diagram for MB2D.IO.InputMap:
Collaboration graph

Public Member Functions

 InputMap ()
 Initializes a new instance of the T:MB2D.IO.InputMap class. More...
 
Command Assign< T > (Keys key, CommandType type, params object[] args)
 Assign a Command to the specified key and CommandType . More...
 
Search< T > ()
 Searches the map for a specific command More...
 

Properties

List< Commandthis[Keys key] [get]
 Gets the T:MB2D.IO.Commnad mapped to the specified key. More...
 
Dictionary< Keys, List< Command > > Collection [get]
 Gets a key->Command dictionary More...
 

Detailed Description

Maps commands to keys and trigger types

Constructor & Destructor Documentation

§ InputMap()

MB2D.IO.InputMap.InputMap ( )
inline

Initializes a new instance of the T:MB2D.IO.InputMap class.

Member Function Documentation

§ Assign< T >()

Command MB2D.IO.InputMap.Assign< T > ( Keys  key,
CommandType  type,
params object []  args 
)
inline

Assign a Command to the specified key and CommandType .

Parameters
keyKey to assign the command to
typeType of trigger
Template Parameters
TThe command to assign
Type Constraints
T :Command 

§ Search< T >()

T MB2D.IO.InputMap.Search< T > ( )
inline

Searches the map for a specific command

Template Parameters
TThe 1st type parameter.
Type Constraints
T :Command 

Property Documentation

§ Collection

Dictionary<Keys, List<Command> > MB2D.IO.InputMap.Collection
get

Gets a key->Command dictionary

The collection of commands.

§ this[Keys key]

List<Command> MB2D.IO.InputMap.this[Keys key]
get

Gets the T:MB2D.IO.Commnad mapped to the specified key.

Parameters
keyKey to query

The documentation for this class was generated from the following file: