SinglePad#pollStatus()
  • References/Game Development/Phaser/Gamepads/SinglePad

pollStatus() Main update function called by Phaser.Gamepad. Source code:

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#axis()
  • References/Game Development/Phaser/Gamepads/SinglePad

axis(axisCode) → {number} Returns value of requested axis. Parameters

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

onDownCallback : Function This callback is invoked every time a button is pressed down.

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
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
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
SinglePad#justReleased()
  • References/Game Development/Phaser/Gamepads/SinglePad

justReleased(buttonCode, duration) → {boolean} Returns the "just released"

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

new SinglePad(game, padParent) A single Phaser Gamepad Parameters

2025-01-10 15:47:30