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