processAxisChange(axisState) Handles changes in axis. Parameters
[readonly] index : number The gamepad index as per browsers data
addCallbacks(context, callbacks) Add callbacks to this Gamepad to handle connect / disconnect / button down / button up / axis change
disconnect() Gamepad disconnect function, should be called by Phaser.Gamepad. Source
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
getButton(buttonCode) → {Phaser.DeviceButton}
reset() Reset all buttons/axes of this gamepad. Source code:
justPressed(buttonCode, duration) → {boolean} Returns the "just pressed"
onDisconnectCallback : Function This callback is invoked every time this gamepad is disconnected
Page 1 of 3