addCallbacks(context, callbacks)
Add callbacks to the main Gamepad handler to handle connect/disconnect/button down/button up/axis change/float value buttons.
Parameters
Name | Type | Description |
---|---|---|
context | object | The context under which the callbacks are run. |
callbacks | object | Object that takes six different callback methods: |
- Source code: input/Gamepad.js (Line 139)
Please login to continue.