reset() Resets this DeviceButton, changing it to an isUp state and resetting the duration and repeats counters.
justReleased(duration) → {boolean} Returns the "just released" state
timeDown : number The timestamp when the button was last pressed down. Source
new DeviceButton(parent, buttonCode) DeviceButtons belong to both Phaser.Pointer and Phaser.SinglePad (Gamepad)
timeUp : number The timestamp when the button was last released. Source code:
buttonCode : number The buttoncode of this button if a Gamepad, or the DOM button event value if a Pointer.
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
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