openfl.sensors

..
Accelerometer

The Accelerometer class dispatches events based on activity detected by the device's motion sensor. This data represents the device's location or movement along a 3-dimensional axis. When the device moves, the sensor detects this movement and returns acceleration data. The Accelerometer class provides methods to query whether or not accelerometer is supported, and also to set the rate at which acceleration events are dispatched.

DeviceRotation

The DeviceRotation class dispatches events based on activity detected by the device's accelerometer, gyroscope sensors. This data represents the device's roll, pitch, yaw and quaternions. When the device rotates, the sensors detect this rotation and return this data. The DeviceRotation class provides methods to query whether or not device rotation event handling is supported, and also to set the rate at which device rotation events are dispatched.

Geolocation

The Geolocation class dispatches events in response to the device's location sensor.