Package | artcustomer.maxima.engine.inputs.controls.map |
Class | public class GameControlsMap |
Inheritance | GameControlsMap ![]() |
Implements | IDestroyable |
Method | Defined By | ||
---|---|---|---|
Constructor
| GameControlsMap | ||
addControl(action:String, table:ControlTable):void
Add control in map. | GameControlsMap | ||
clear():void
Remove all controls. | GameControlsMap | ||
destroy():void
Destructor
| GameControlsMap | ||
getControlByKey(keyCode:String, controlType:String):String
Get control by key code. | GameControlsMap | ||
hasControl(action:String):Boolean
Test control in map. | GameControlsMap | ||
removeControl(action:String):void
Remove control in map. | GameControlsMap |
GameControlsMap | () | Constructor |
public function GameControlsMap()
Constructor
addControl | () | method |
public function addControl(action:String, table:ControlTable):void
Add control in map.
Parameters
action:String | |
table:ControlTable |
clear | () | method |
public function clear():void
Remove all controls.
destroy | () | method |
public function destroy():void
Destructor
getControlByKey | () | method |
public function getControlByKey(keyCode:String, controlType:String):String
Get control by key code.
Parameters
keyCode:String | |
controlType:String |
String —
|
hasControl | () | method |
public function hasControl(action:String):Boolean
Test control in map.
Parameters
action:String |
Boolean —
|
removeControl | () | method |
public function removeControl(action:String):void
Remove control in map.
Parameters
action:String |