timeUp : number The timestamp when the button was last released. Source code:
altKey : boolean True if the alt key was held down when this button was last pressed or released.Not supported on Gamepads
justReleased(duration) → {boolean} Returns the "just released" state
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.
isUp : boolean The "up" state of the button. Default Value
value : number Button value. Mainly useful for checking analog buttons (like shoulder triggers) on Gamepads.
[readonly] duration : number How long the button has been held down for in milliseconds.
repeats : number Gamepad only.If a button is held down this holds down the number of times the button has 'repeated'.
Page 2 of 3