GamepadEvent
Event → js.html.GamepadEvent (extern class)
The GamepadEvent interface of the Gamepad API contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected
and Window.gamepaddisconnected
are fired in response to.
Documentation GamepadEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Instance Members
gamepad: Gamepad
Returns a Gamepad
object, providing access to the associated gamepad data for the event fired.
new(type: String, ?eventInitDict: Null<GamepadEventInit>): Void
Name | Type | Default |
---|---|---|
type |
String | |
eventInitDict |
Null<GamepadEventInit> | (optional) |