Key#onHoldContext
  • References/Game Development/Phaser/Input/Key

onHoldContext : Object The context under which the onHoldCallback will be called. Source

2025-01-10 15:47:30
Key#duration
  • References/Game Development/Phaser/Input/Key

duration : number If the key is down this value holds the duration of that key press and is constantly updated.If the key

2025-01-10 15:47:30
Key#altKey
  • References/Game Development/Phaser/Input/Key

altKey : boolean The down state of the ALT key, if pressed at the same time as this key.

2025-01-10 15:47:30
Key#timeUp
  • References/Game Development/Phaser/Input/Key

timeUp : number The timestamp when the key was last released. This is based on Game.time.now.

2025-01-10 15:47:30
Key#repeats
  • References/Game Development/Phaser/Input/Key

repeats : number If a key is held down this holds down the number of times the key has 'repeated'.

2025-01-10 15:47:30
Key#upDuration()
  • References/Game Development/Phaser/Input/Key

upDuration(duration) → {boolean} Returns true if the

2025-01-10 15:47:30
Key#reset()
  • References/Game Development/Phaser/Input/Key

reset(hard) Resets the state of this Key. This sets isDown to false, isUp to true, resets the time

2025-01-10 15:47:30
Key#keyCode
  • References/Game Development/Phaser/Input/Key

keyCode : number The keycode of this key. Source code:

2025-01-10 15:47:30
Key#game
  • References/Game Development/Phaser/Input/Key

game : Phaser.Game A reference to the currently running game

2025-01-10 15:47:30
Key#shiftKey
  • References/Game Development/Phaser/Input/Key

shiftKey : boolean The down state of the SHIFT key, if pressed at the same time as this key.

2025-01-10 15:47:30