The gamepaddisconnected
event is fired when the browser detects that a gamepad has been disconnected.
Examples
window.addEventListener('gamepaddisconnected', event => {
console.log('Lost connection with the gamepad.');
});
Specifications
Specification |
Status |
Gamepad |
Working Draft |
Browser compatibility
| Desktop | Mobile |
---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | Android webview | Chrome for Android | Firefox for Android | Opera for Android | Safari on iOS | Samsung Internet |
---|
gamepaddisconnected event | Chrome
Full support
35-
Full support
35
-
No support
21 — 35
- Prefixed Implemented with the vendor prefix: webkit
| Edge
Full support
≤18 | Firefox
Full support
29 | IE
No support
No | Opera
Full support
22-
Full support
22
-
No support
15 — 22
- Prefixed Implemented with the vendor prefix: webkit
| Safari
Full support
10.1 | WebView Android
Full support
37 | Chrome Android
Full support
37 | Firefox Android
Full support
32 | Opera Android
Full support
Yes | Safari iOS
No support
No | Samsung 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