Phaser API Documentation

  Version: 
This is a beta release of our new docs system. Found an issue?
Please tell us about it in the #📖-newdocs-feedback channel on the Phaser Discord
Event: DISCONNECTED
Phaser.Input.Gamepad.Events.DISCONNECTED
DISCONNECTED

Description:

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).

Parameters:

name type description
pad Phaser.Input.Gamepad

A reference to the Gamepad which was disconnected.

event Event

The native DOM Event that triggered the disconnection.