SinglePad#connect()

connect(rawPad) Gamepad connect function, should be called by Phaser.Gamepad. Parameters Name Type Description rawPad object The raw gamepad object Source code: input/SinglePad.js (Line 216)

SinglePad#callbackContext

callbackContext : Object The context under which the callbacks are run. Source code: input/SinglePad.js (Line 38)

SinglePad#buttonValue()

buttonValue(buttonCode) → {number} Returns the value of a gamepad button. Intended mainly for cases when you have floating button values, for exampleanalog trigger buttons on the XBOX 360 controller. Parameters Name Type Description buttonCode number The buttonCode of the button to check. Returns number - Button value if available otherwise null. Be careful as this can incorrectly evaluate to 0. Source code: input/SinglePad.js (Line 520)

SinglePad#axis()

axis(axisCode) → {number} Returns value of requested axis. Parameters Name Type Description axisCode number The index of the axis to check Returns number - Axis value if available otherwise false Source code: input/SinglePad.js (Line 432)

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)

SignalBinding#toString()

toString() → {string} Returns string - String representation of the object. Source code: core/SignalBinding.js (Line 189)

SignalBinding#SignalBinding

new SignalBinding(signal, listener, isOnce, listenerContext, priority, args) Object that represents a binding between a Signal and a listener function.This is an internal constructor and shouldn't be created directly.Inspired by Joa Ebert AS3 SignalBinding and Robert Penner's Slot classes. Parameters Name Type Argument Default Description signal Phaser.Signal Reference to Signal object that listener is currently bound to. listener function Handler function bound to the signal. is

SignalBinding#params

params :array | null Default parameters passed to listener during Signal.dispatch and SignalBinding.execute (curried parameters). Type array | null Source code: core/SignalBinding.js (Line 100)

SignalBinding#isOnce()

isOnce() → {boolean} Returns boolean - If SignalBinding will only be executed once. Source code: core/SignalBinding.js (Line 154)

SignalBinding#isBound()

isBound() → {boolean} Returns boolean - True if binding is still bound to the signal and has a listener. Source code: core/SignalBinding.js (Line 146)