12#include <android/sensor.h>
37 ASensorManager *sensor_manager;
38 const ASensor *accelerometer;
39 const ASensor *gyroscope;
40 ASensorEventQueue *event_queue;
56android_device_create(
void);
65#define ANDROID_TRACE(d, ...) U_LOG_XDEV_IFL_T(&d->base, d->log_level, __VA_ARGS__)
66#define ANDROID_DEBUG(d, ...) U_LOG_XDEV_IFL_D(&d->base, d->log_level, __VA_ARGS__)
67#define ANDROID_INFO(d, ...) U_LOG_XDEV_IFL_I(&d->base, d->log_level, __VA_ARGS__)
68#define ANDROID_WARN(d, ...) U_LOG_XDEV_IFL_W(&d->base, d->log_level, __VA_ARGS__)
69#define ANDROID_ERROR(d, ...) U_LOG_XDEV_IFL_E(&d->base, d->log_level, __VA_ARGS__)
u_logging_level
Logging level enum.
Definition: u_logging.h:43
C interface to math library.
A IMU fusion specially made for 3dof devices.
Wrapper around OS threading native functions.
Definition: android_sensors.h:33
struct os_mutex lock
Lock for last and fusion.
Definition: android_sensors.h:47
Definition: m_imu_3dof.h:35
A wrapper around a native mutex.
Definition: os_threading.h:55
All in one helper that handles locking, waiting for change and starting a thread.
Definition: os_threading.h:453
Both given and derived values needed for cardboard distortion.
Definition: u_distortion.h:89
A single HMD or input device.
Definition: xrt_device.h:241
Code to handle distortion parameters and fov.
Basic logging functionality.
Header defining an xrt display or controller device.