Results 1 - 16 of 16

Gamepad

The Gamepad interface of the Gamepad API defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
API Gamepad API Games Interface Reference

GamepadEvent

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.
API Gamepad API Games NeedsBrowserCompatibility Reference Référence

GamepadEvent.gamepad

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.
API Gamepad API Property Reference Référence

Gamepad.axes

The Gamepad.axes property of the Gamepad interface returns an array representing the controls with axes present on the device (e.g. analog thumb sticks).-
API Gamepad API Games NeedsBetterSpecLink NeedsCompatTable NeedsMarkupWork Property Reference Référence

Gamepad.buttons

The Gamepad.buttons property of the Gamepad interface returns an array of gamepadButton objects representing the buttons present on the device.
API Gamepad API Games NeedsBetterSpecLink NeedsCompatTable NeedsMarkupWork Property Reference Référence

Gamepad.connected

The Gamepad.connected property of the Gamepad interface returns a boolean indicating whether the gamepad is still connected to the system.
API Gamepad API Games NeedsBetterSpecLink NeedsBrowserCompatibility NeedsMarkupWork Property Reference Référence

Gamepad.id

The Gamepad.id property of the Gamepad interface returns a string containing some information about the controller.
API Gamepad API Games NeedsBetterSpecLink NeedsMarkupWork NeedsRealCompatTable Property Reference Référence

Gamepad.index

The Gamepad.index property of the Gamepad interface returns an integer that is auto-incremented to be unique for each device currently connected to the system.
API Gamepad API Games NeedsBetterSpecLink NeedsMarkupWork NeedsRealCompatTable Property Reference Référence

Gamepad.mapping

The Gamepad.mapping property of the Gamepad interface returns a string indicating whether the browser has remapped the controls on the device to a known layout.
API Gamepad API Games NeedsBetterSpecLink NeedsCompatTable NeedsMarkupWork Property Reference Référence

Gamepad.timestamp

The Gamepad.timestamp property of the Gamepad interface returns a DOMHighResTimeStamp representing the last time the data for this gamepad was updated.
API Gamepad API Games NeedsBetterSpecLink NeedsCompatTable NeedsMarkupWork Property Reference Référence

GamepadButton

The GamepadButton interface defines an individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.
API Gamepad API Games NeedsBetterSpecLink NeedsCompatTable NeedsMarkupWork Reference Référence

GamepadButton.pressed

The GamepadButton.pressed property of the GamepadButton interface returns a boolean indicating whether the button is currently pressed (true) or unpressed (false).
API Gamepad API Games NeedsBetterSpecLink NeedsCompatTable NeedsMarkupWork Property Reference Référence

GamepadButton.value

The GamepadButton.value property of the GamepadButton interface returns a double value used to represent the current state of analog buttons on many modern gamepads, such as the triggers.
API Gamepad API Games NeedsBetterSpecLink NeedsCompatTable NeedsMarkupWork Property Reference Référence