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

Examples

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

Specifications

Specification Status
Gamepad Working Draft

Browser compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
gamepaddisconnected eventChrome Full support 35
Full support 35
No support 21 — 35
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Edge Full support ≤18Firefox Full support 29IE No support NoOpera Full support 22
Full support 22
No support 15 — 22
Prefixed
Prefixed Implemented with the vendor prefix: webkit
Safari Full support 10.1WebView Android Full support 37Chrome Android Full support 37Firefox Android Full support 32Opera Android Full support YesSafari iOS No support NoSamsung Internet Android Full support 3.0

Legend

Full support
Full support
No support
No support
Requires a vendor prefix or different name for use.
Requires a vendor prefix or different name for use.

See also