Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The GamepadEvent.gamepad
property of the GamepadEvent
interface returns a Gamepad
object, providing access to the associated gamepad data for fired gamepadconnected
and gamepaddisconnected
events.