addCallbacks(context, callbacks)
Add callbacks to this Gamepad 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 callbak methods: |
- Source code: input/SinglePad.js (Line 121)
Please login to continue.