KeyActionMapper
Constructor Summary
| Public Constructor | ||
| public |
constructor(root: GameRoot, inputReciever: InputReceiver) |
|
Member Summary
| Public Members | ||
| public |
|
|
| public |
|
|
| public |
root: * |
|
Method Summary
| Public Methods | ||
| public |
cleanup() |
|
| public |
forward(receiver: KeyActionMapper, bindings: Array<string>) Forwards the given events to the other mapper (used in tooltips) |
|
| public |
getBinding(binding: {keyCode: number}): Keybinding Returns a given keybinding |
|
| public |
getKeybindingsStartingWith(pattern: string): Array<Keybinding> Returns all keybindings starting with the given id |
|
| public |
handleKeydown(param0: object): * Internal keydown handler |
|
| public |
handleKeyup(param0: object) Internal keyup handler |
|
| public |
|
|
Public Constructors
public constructor(root: GameRoot, inputReciever: InputReceiver) source
Params:
| Name | Type | Attribute | Description |
| root | GameRoot | ||
| inputReciever | InputReceiver |
Public Members
public inputReceiver: * source
public keybindings: Object<string, Keybinding> source
public root: * source
Public Methods
public cleanup() source
public forward(receiver: KeyActionMapper, bindings: Array<string>) source
Forwards the given events to the other mapper (used in tooltips)
Params:
| Name | Type | Attribute | Description |
| receiver | KeyActionMapper | ||
| bindings | Array<string> |
public getBinding(binding: {keyCode: number}): Keybinding source
Returns a given keybinding
Params:
| Name | Type | Attribute | Description |
| binding | {keyCode: number} |
public getKeybindingsStartingWith(pattern: string): Array<Keybinding> source
Returns all keybindings starting with the given id
Params:
| Name | Type | Attribute | Description |
| pattern | string |
