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
BCD tables only load in the browser