Results 1 - 17 of 17

CanvasRenderingContext2D

To get an object of this interface, call getContext() on a <canvas> element, supplying "2d" as the argument:
API Canvas CanvasRenderingContext2D Games Graphics Reference

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

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

Pointer Lock API

The Pointer Lock API (formerly called Mouse Lock API) provides input methods based on the movement of the mouse over time (i.e., deltas), not just the absolute position of the mouse cursor in the viewport. It gives you access to raw mouse movement, locks the target of mouse events to a single element, eliminates limits on how far mouse movement can go in a single direction, and removes the cursor from view. It is ideal for first person 3D games, for example.
Advanced API Games mouse lock pointer lock Reference Référence