Phaser API Documentation

  Version: 
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.