SinglePad#callbackContext
  • References/Game Development/Phaser/Gamepads/SinglePad

callbackContext : Object The context under which the callbacks are run. Source

2025-01-10 15:47:30
SinglePad#deadZone
  • References/Game Development/Phaser/Gamepads/SinglePad

deadZone : number Dead zone for axis feedback - within this value you won't trigger updates.

2025-01-10 15:47:30
Gamepad#callbackContext
  • References/Game Development/Phaser/Gamepads/Gamepad

callbackContext : Object The context under which the callbacks are run. Source

2025-01-10 15:47:30
SinglePad#onAxisCallback
  • References/Game Development/Phaser/Gamepads/SinglePad

onAxisCallback : Function This callback is invoked every time an axis is changed. Source

2025-01-10 15:47:30
SinglePad#isDown()
  • References/Game Development/Phaser/Gamepads/SinglePad

isDown(buttonCode) → {boolean} Returns true if the button is pressed down. Parameters

2025-01-10 15:47:30
Gamepad#onDisconnectCallback
  • References/Game Development/Phaser/Gamepads/Gamepad

onDisconnectCallback : Function This callback is invoked every time any gamepad is disconnected

2025-01-10 15:47:30
SinglePad#processButtonFloat()
  • References/Game Development/Phaser/Gamepads/SinglePad

processButtonFloat(buttonCode, value) Handles buttons with floating values (like analog buttons that acts almost like an axis but still

2025-01-10 15:47:30
Gamepad#destroy()
  • References/Game Development/Phaser/Gamepads/Gamepad

destroy() Destroys this object and the associated event listeners. Source code:

2025-01-10 15:47:30
Gamepad#Gamepad
  • References/Game Development/Phaser/Gamepads/Gamepad

new Gamepad(game) The Gamepad class handles gamepad input and dispatches gamepad events. Remember to call gamepad.start()

2025-01-10 15:47:30
SinglePad#onConnectCallback
  • References/Game Development/Phaser/Gamepads/SinglePad

onConnectCallback : Function This callback is invoked every time this gamepad is connected

2025-01-10 15:47:30