GamepadEvent: GamepadEvent() constructor
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
BCD tables only load in the browser