CursorKeys
<static> CursorKeys
name | type | optional | description |
---|---|---|---|
up | No | A Key object mapping to the UP arrow key. | |
down | No | A Key object mapping to the DOWN arrow key. | |
left | No | A Key object mapping to the LEFT arrow key. | |
right | No | A Key object mapping to the RIGHT arrow key. | |
space | No | A Key object mapping to the SPACE BAR key. | |
shift | No | A Key object mapping to the SHIFT key. |
Type: object
Member of: Phaser.Types.Input.Keyboard
Source: src/input/keyboard/typedefs/CursorKeys.js#L1
Since: 3.0.0
KeyboardKeydownCallback
<static> KeyboardKeydownCallback
Type: function
Member of: Phaser.Types.Input.Keyboard
Source: src/input/keyboard/typedefs/KeyboardKeydownCallback.js#L1
Since: 3.0.0
KeyComboConfig
<static> KeyComboConfig
name | type | optional | default | description |
---|---|---|---|---|
resetOnWrongKey | boolean | Yes | true | If they press the wrong key do we reset the combo? |
maxKeyDelay | number | Yes | 0 | The max delay in ms between each key press. Above this the combo is reset. 0 means disabled. |
resetOnMatch | boolean | Yes | false | If previously matched and they press the first key of the combo again, will it reset? |
deleteOnMatch | boolean | Yes | false | If the combo matches, will it delete itself? |
Type: object
Member of: Phaser.Types.Input.Keyboard
Source: src/input/keyboard/typedefs/KeyComboConfig.js#L1
Since: 3.0.0