- Source: src/input/keyboard/typedefs/index.js (Line 7)
Type Definitions
-
CursorKeys
-
Type:
- object
- Since: 3.0.0
- Source: src/input/keyboard/typedefs/CursorKeys.js (Line 1)
Properties:
Name Type Description upPhaser.Input.Keyboard.Key A Key object mapping to the UP arrow key.
downPhaser.Input.Keyboard.Key A Key object mapping to the DOWN arrow key.
leftPhaser.Input.Keyboard.Key A Key object mapping to the LEFT arrow key.
rightPhaser.Input.Keyboard.Key A Key object mapping to the RIGHT arrow key.
spacePhaser.Input.Keyboard.Key A Key object mapping to the SPACE BAR key.
shiftPhaser.Input.Keyboard.Key A Key object mapping to the SHIFT key.
-
KeyboardKeydownCallback(event)
-
Parameters:
Name Type Description eventKeyboardEvent The Keyboard Event.
- Since: 3.0.0
- Source: src/input/keyboard/typedefs/KeyboardKeydownCallback.js (Line 1)
-
KeyComboConfig
-
Type:
- object
- Since: 3.0.0
- Source: src/input/keyboard/typedefs/KeyComboConfig.js (Line 1)
Properties:
Name Type Argument Default Description resetOnWrongKeyboolean <optional>
true If they press the wrong key do we reset the combo?
maxKeyDelaynumber <optional>
0 The max delay in ms between each key press. Above this the combo is reset. 0 means disabled.
resetOnMatchboolean <optional>
false If previously matched and they press the first key of the combo again, will it reset?
deleteOnMatchboolean <optional>
false If the combo matches, will it delete itself?
