new DeviceButton(parent, buttonCode) DeviceButtons belong to both Phaser.Pointer and Phaser.SinglePad (Gamepad)
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.
timeDown : number The timestamp when the button was last pressed down. Source
buttonCode : number The buttoncode of this button if a Gamepad, or the DOM button event value if a Pointer.
altKey : boolean True if the alt key was held down when this button was last pressed or released.Not supported on Gamepads
repeats : number Gamepad only.If a button is held down this holds down the number of times the button has 'repeated'.
value : number Button value. Mainly useful for checking analog buttons (like shoulder triggers) on Gamepads.
shiftKey : boolean True if the shift key was held down when this button was last pressed or released.Not supported on Gamepads
isUp : boolean The "up" state of the button. Default Value
Page 2 of 3