Phaser API Documentation

  Version: 
Event: BUTTON_UP
Phaser.Input.Gamepad.Events.BUTTON_UP
BUTTON_UP

Description:

The Gamepad Button Up Event.

This event is dispatched by the Gamepad Plugin when a button has been released on any active Gamepad.

Listen to this event from within a Scene using: this.input.gamepad.on('up', listener).

You can also listen for an UP event from a Gamepad instance. See the GAMEPAD_BUTTON_UP event for details.

Parameters:

name type description
pad Phaser.Input.Gamepad

A reference to the Gamepad on which the button was released.

button Phaser.Input.Gamepad.Button

A reference to the Button which was released.

value number

The value of the button at the time it was released. Between 0 and 1. Some Gamepads have pressure-sensitive buttons.

Since: 3.10.0