DeviceButton#timeUp
  • References/Game Development/Phaser/Input/DeviceButton

timeUp : number The timestamp when the button was last released. Source code:

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

reset() Resets this DeviceButton, changing it to an isUp state and resetting the duration and repeats counters.

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

new DeviceButton(parent, buttonCode) DeviceButtons belong to both Phaser.Pointer and Phaser.SinglePad (Gamepad)

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

buttonCode : number The buttoncode of this button if a Gamepad, or the DOM button event value if a Pointer.

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

justReleased(duration) → {boolean} Returns the "just released" state

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

altKey : boolean True if the alt key was held down when this button was last pressed or released.Not supported on Gamepads

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

shiftKey : boolean True if the shift key was held down when this button was last pressed or released.Not supported on Gamepads

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

value : number Button value. Mainly useful for checking analog buttons (like shoulder triggers) on Gamepads.

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

destroy() Destroys this DeviceButton, this disposes of the onDown, onUp and onFloat signalsand clears the parent and game references

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

[readonly] duration : number How long the button has been held down for in milliseconds.

2025-01-10 15:47:30