Gamepad
Widely available since 2019-09-27
The navigator.getGamepads()
API accesses and responds to signals from game controllers.
Learning resources on MDN
- Gamepad
- Gamepad: axes property
- Gamepad: buttons property
- Gamepad: connected property
- Gamepad: id property
- Gamepad: index property
- Gamepad: mapping property
- Gamepad: timestamp property
- GamepadButton
- GamepadButton: pressed property
- GamepadButton: value property
- GamepadEvent
- GamepadEvent: GamepadEvent() constructor
- GamepadEvent: gamepad property
- Navigator: getGamepads() method
- Window: gamepadconnected event
- Window: gamepaddisconnected event
Browser support (view on caniuse.com)
- Chrome 21 Released on 2012-07-31
- Chrome Android 25 Released on 2013-02-27
- Edge 12 Released on 2015-07-29
- Firefox 29 Released on 2014-04-29
- Firefox for Android 32 Released on 2014-09-02
- Safari 10.1 Released on 2017-03-27
- Safari on iOS 10.3 Released on 2017-03-27
Specifications
- Gamepad, from Web Applications Working Group (W3C).