timeUp : number The timestamp when the button was last released. Source code:
reset() Resets this DeviceButton, changing it to an isUp state and resetting the duration and repeats counters.
new DeviceButton(parent, buttonCode) DeviceButtons belong to both Phaser.Pointer and Phaser.SinglePad (Gamepad)
buttonCode : number The buttoncode of this button if a Gamepad, or the DOM button event value if a Pointer.
justReleased(duration) → {boolean} Returns the "just released" state
altKey : boolean True if the alt key was held down when this button was last pressed or released.Not supported on Gamepads
shiftKey : boolean True if the shift key was held down when this button was last pressed or released.Not supported on Gamepads
value : number Button value. Mainly useful for checking analog buttons (like shoulder triggers) on Gamepads.
destroy() Destroys this DeviceButton, this disposes of the onDown, onUp and onFloat signalsand clears the parent and game references
[readonly] duration : number How long the button has been held down for in milliseconds.
Page 2 of 3