[readonly] active : boolean If the gamepad input is active or not - if not active it should
onDownCallback : Function This callback is invoked every time any gamepad button is pressed down.
onUpCallback : Function This callback is invoked every time any gamepad button is released.
[readonly] pad2 : Phaser.SinglePad
[readonly] pad3 : Phaser.SinglePad
justPressed(buttonCode, duration) → {boolean} Returns the "just released"
stop() Stops the Gamepad event handling. Source code:
start() Starts the Gamepad event handling.This MUST be called manually before Phaser will start polling the Gamepad API.
addCallbacks(context, callbacks) Add callbacks to the main Gamepad handler to handle connect/disconnect/button down/button up/axis change/float
isDown(buttonCode) → {boolean} Returns true if the button is currently pressed down, on ANY gamepad
Page 2 of 3