Firefox Tomorrow

web api instance property

GamepadPose: linearAcceleration property

View on MDN ↗

Limited availability

The linearAcceleration read-only property of the GamepadPose interface returns an array representing the linear acceleration vector of the Gamepad, in meters per second per second.

In other words, the current acceleration of the sensor, along the x, y, and z axes.

Value

A Float32Array, or null if the gamepad is not able to provide linear acceleration data.

Examples

TBD

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also