callbackContext : Object The context under which the callbacks are run. Source
deadZone : number Dead zone for axis feedback - within this value you won't trigger updates.
onAxisCallback : Function This callback is invoked every time an axis is changed. Source
isDown(buttonCode) → {boolean} Returns true if the button is pressed down. Parameters
onDisconnectCallback : Function This callback is invoked every time any gamepad is disconnected
processButtonFloat(buttonCode, value) Handles buttons with floating values (like analog buttons that acts almost like an axis but still
destroy() Destroys this object and the associated event listeners. Source code:
new Gamepad(game) The Gamepad class handles gamepad input and dispatches gamepad events. Remember to call gamepad.start()
onConnectCallback : Function This callback is invoked every time this gamepad is connected
Page 5 of 6