API reference
Preparing search index…

Sensor

Functions

getValue

Return three-axis measurements: acceleration in m/s², angular velocity in degrees/second, magnetic field in µT, and orientation in degrees.

isAvailable

Return whether the device provides the specified sensor.

setEnabled

Enable or disable sensor data acquisition.

References

Count → SensorCount
Type → SensorType

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0