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

getButton(buttonCode) → {Phaser.DeviceButton}

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

game : Phaser.Game Local reference to game.

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

connect(rawPad) Gamepad connect function, should be called by Phaser.Gamepad. Parameters

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

isUp(buttonCode) → {boolean} Returns true if the button is not currently pressed. Parameters

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

processButtonUp(buttonCode, value) Handles button release. Parameters

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

processButtonDown(buttonCode, value) Handles button down press. Parameters

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

destroy() Destroys this object and associated callback references. Source code:

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

buttonValue(buttonCode) → {number} Returns the value of a gamepad button. Intended mainly for cases

2025-01-10 15:47:30
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