GamepadEvent: GamepadEvent() constructor
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2017.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The GamepadEvent() constructor creates a new GamepadEvent object.
Syntax
js
new GamepadEvent(type, options)
Parameters
Return value
A new GamepadEvent object.
Specifications
| Specification |
|---|
| Gamepad # dom-gamepadevent-constructor |
Browser compatibility
| desktop | mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
GamepadEvent() constructor
|
|
|
|
|
|
|
|
|
|
|
|
|
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support