Results 1 - 19 of 19

DeviceLightEvent

The DeviceLightEvent provides web developers with information from photo sensors or similiar detectors about ambient light levels near the device. For example this may be useful to adjust the screen's brightness based on the current ambient light level in order to save energy or provide better readability.
Ambient Light Events API Experimental Expérimental Interface NeedsBetterSpecLink NeedsMarkupWork

DeviceLightEvent.value

The value property provides the current level of the ambient light.
Ambient Light Events API Experimental NeedsBetterSpecLink NeedsMarkupWork Property

DeviceOrientationEvent.alpha

Returns the rotation of the device around the Z axis; that is, the number of degrees by which the device is being twisted around the center of the screen. See Orientation and motion data explained for details.
API DeviceOrientation API NeedsBetterSpecLink NeedsCompatTable NeedsExample NeedsMarkupWork Property Reference

DeviceOrientationEvent.beta

Returns the rotation of the device around the X axis; that is, the number of degrees, ranged between -180 and 180,  by which the device is tipped forward or backward. See Orientation and motion data explained for details.
API Device Orientation API DeviceOrientationEvent NeedsBetterSpecLink NeedsExample NeedsMarkupWork Property Reference

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

Window.onuserproximity

The Window.onuserproxymity property represents an EventHandler, that is a function to be called when the userproximity event occurs. These events are of type UserProximityEvent and occur when the the device sensor detects that an object becomes nearby.
API Experimental Expérimental NeedsBetterSpecLink Property Proximity Events Reference Référence Window

DeviceOrientationEvent.gamma

Returns the rotation of the device around the Y axis; that is, the number of degrees, ranged between -90 and 90, by which the device is turned left or right. See Orientation and motion data explained for details.
API Device Orientation API DeviceOrientationEvent NeedsBetterSpecLink NeedsCompatTable NeedsExample NeedsMarkupWork Property Reference