Window: gamepaddisconnected event

The gamepaddisconnected event is fired when the browser detects that a gamepad has been disconnected.

Bubbles No
Cancelable No
Interface GamepadEvent
Event handler property ongamepaddisconnected


window.addEventListener('gamepaddisconnected', event => {
    console.log('Lost connection with the gamepad.');


Specification Status
Gamepad Working Draft

Browser compatibility

BCD tables only load in the browser

See also