Midnight Blue Game and Engine
|
Maps commands to keys and trigger types More...
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... | |
T | Search< T > () |
Searches the map for a specific command More... | |
Properties | |
List< Command > | this[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... | |
Maps commands to keys and trigger types
|
inline |
Initializes a new instance of the T:MB2D.IO.InputMap class.
|
inline |
Assign a Command to the specified key and CommandType .
key | Key to assign the command to |
type | Type of trigger |
T | The command to assign |
T | : | Command |
|
inline |
Searches the map for a specific command
T | The 1st type parameter. |
T | : | Command |
|
get |
Gets a key->Command dictionary
The collection of commands.
|
get |
Gets the T:MB2D.IO.Commnad mapped to the specified key.
key | Key to query |