Skip to main content
Version: Phaser v3.88.2

Types.Input.Keyboard

CursorKeys

<static> CursorKeys

nametypeoptionaldescription
upPhaser.Input.Keyboard.KeyNoA Key object mapping to the UP arrow key.
downPhaser.Input.Keyboard.KeyNoA Key object mapping to the DOWN arrow key.
leftPhaser.Input.Keyboard.KeyNoA Key object mapping to the LEFT arrow key.
rightPhaser.Input.Keyboard.KeyNoA Key object mapping to the RIGHT arrow key.
spacePhaser.Input.Keyboard.KeyNoA Key object mapping to the SPACE BAR key.
shiftPhaser.Input.Keyboard.KeyNoA 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


KeyComboConfig

<static> KeyComboConfig

nametypeoptionaldefaultdescription
resetOnWrongKeybooleanYestrueIf they press the wrong key do we reset the combo?
maxKeyDelaynumberYes0The max delay in ms between each key press. Above this the combo is reset. 0 means disabled.
resetOnMatchbooleanYesfalseIf previously matched and they press the first key of the combo again, will it reset?
deleteOnMatchbooleanYesfalseIf 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


KeyboardKeydownCallback

<static> KeyboardKeydownCallback

Type: function

Member of: Phaser.Types.Input.Keyboard

Source: src/input/keyboard/typedefs/KeyboardKeydownCallback.js#L1
Since: 3.0.0