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

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox 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 YesFirefox 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 37Edge Mobile Full support YesFirefox Android Full support 32Opera Android Full support YesSafari iOS No support NoSamsung Internet Android Full support Yes

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

Document Tags and Contributors

Last updated by: irenesmith,