SinglePad#addCallbacks()

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:
onConnectCallback, onDisconnectCallback, onDownCallback, onUpCallback, onAxisCallback, onFloatCallback

Source code: input/SinglePad.js (Line 121)
doc_phaser
2017-02-14 11:09:31
Comments
Leave a Comment

Please login to continue.