onAxisCallback : Function This callback is invoked every time any gamepad axis is changed.
onConnectCallback : Function This callback is invoked every time any gamepad is connected
onFloatCallback : Function This callback is invoked every time a button is changed to a value where value > 0 and value <
[readonly] connected : boolean Whether or not this particular gamepad is connected or not
processAxisChange(axisState) Handles changes in axis. Parameters
setDeadZones() Sets the deadZone variable for all four gamepads Source code:
reset() Reset all buttons/axes of all gamepads Source code:
[readonly] padsConnected : number How many live gamepads are currently connected.
addCallbacks(context, callbacks) Add callbacks to this Gamepad to handle connect / disconnect / button down / button up / axis change
[readonly] index : number The gamepad index as per browsers data
Page 1 of 6