phaser
Version:
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.
22 lines (20 loc) • 712 B
JavaScript
/**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* The Gamepad Disconnected Event.
*
* This event is dispatched by the Gamepad Plugin when a Gamepad has been disconnected.
*
* Listen to this event from within a Scene using: `this.input.gamepad.once('disconnected', listener)`.
*
* @event Phaser.Input.Gamepad.Events#DISCONNECTED
* @type {string}
* @since 3.0.0
*
* @param {Phaser.Input.Gamepad} pad - A reference to the Gamepad which was disconnected.
* @param {Event} event - The native DOM Event that triggered the disconnection.
*/
module.exports = 'disconnected';