| Package | artcustomer.maxima.engine.inputs.controls.map |
| Class | public class GameControlsMap |
| Inheritance | GameControlsMap Object |
| 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):voidAdd control in map.
Parameters
action:String | |
table:ControlTable |
| clear | () | method |
public function clear():voidRemove all controls.
| destroy | () | method |
public function destroy():voidDestructor
| getControlByKey | () | method |
public function getControlByKey(keyCode:String, controlType:String):StringGet control by key code.
Parameters
keyCode:String | |
controlType:String |
String —
|
| hasControl | () | method |
public function hasControl(action:String):BooleanTest control in map.
Parameters
action:String |
Boolean —
|
| removeControl | () | method |
public function removeControl(action:String):voidRemove control in map.
Parameters
action:String |