UNPKG

phaser

Version:

A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.

28 lines (26 loc) 1.21 kB
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * The Gamepad Button Up Event. * * This event is dispatched by a Gamepad instance when a button has been released on it. * * Listen to this event from a Gamepad instance. Once way to get this is from the `pad1`, `pad2`, etc properties on the Gamepad Plugin: * `this.input.gamepad.pad1.on('up', listener)`. * * Note that you will not receive any Gamepad button events until the browser considers the Gamepad as being 'connected'. * * You can also listen for an UP event from the Gamepad Plugin. See the [BUTTON_UP]{@linkcode Phaser.Input.Gamepad.Events#event:BUTTON_UP} event for details. * * @event Phaser.Input.Gamepad.Events#GAMEPAD_BUTTON_UP * @type {string} * @since 3.10.0 * * @param {number} index - The index of the button that was released. * @param {number} value - The value of the button at the time it was released. Between 0 and 1. Some Gamepads have pressure-sensitive buttons. * @param {Phaser.Input.Gamepad.Button} button - A reference to the Button which was released. */ module.exports = 'up';