struct
FDeviceSensorSample
A phone's own sensors, as opposed to a gamepad's (GamepadInput). The raw numbers come from an IDeviceSensorSource so a row can drive them without a device; FDeviceSensors turns them into what games read: gravity-derived pitch and roll, a tilt-compensated compass heading, a location fix.
- Module
- Input
- Header
#include "Input/DeviceSensors.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
bool | HasAccelerometer | Default false. |
bool | HasGyroscope | Default false. |
bool | HasMagnetometer | Default false. |
bool | HasLocation | Default false. |
Vec3 | Acceleration | Specific force including gravity, m/s^2, device axes: +X right, +Y up the screen, +Z out of the screen. Default Vec3(0.0f, 0.0f, 0.0f). |
Vec3 | RotationRate | Angular rate, rad/s, device axes. Default Vec3(0.0f, 0.0f, 0.0f). |
Vec3 | MagneticField | Magnetic field, microtesla, device axes. Default Vec3(0.0f, 0.0f, 0.0f). |
double | Latitude | Default 0.0. |
double | Longitude | Default 0.0. |
float | AltitudeMeters | Default 0.0f. |
float | HorizontalAccuracyMeters | Default 0.0f. |
Generated from Input/DeviceSensors.h via input.json · Dec 5, 2026Version 1.1.0