onDownCallback : Function This callback is invoked every time a key is pressed down, including key repeats when a key is held down
[static] MIDDLE_BUTTON : number Source code:
justPressed(duration) → {boolean} The Pointer is considered justPressed
[static] BACK_BUTTON : number The X1 button. This is typically the mouse Back button, but
mouseDownCallback : Function A callback that can be fired when the mouse is pressed down.
enabled : boolean MSPointer input will only be processed if enabled. Default
mspointer : Phaser.MSPointer The MSPointer Input
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.
Page 22 of 29