37 enum daydream_button_bits
39 DAYDREAM_TOUCHPAD_BUTTON_BIT = 0,
40 DAYDREAM_CIRCLE_BUTTON_BIT = 1,
41 DAYDREAM_BAR_BUTTON_BIT = 2,
42 DAYDREAM_VOLUP_BUTTON_BIT = 3,
43 DAYDREAM_VOLDN_BUTTON_BIT = 4,
46 enum daydream_button_masks
48 DAYDREAM_TOUCHPAD_BUTTON_MASK = 1 << DAYDREAM_TOUCHPAD_BUTTON_BIT,
49 DAYDREAM_CIRCLE_BUTTON_MASK = 1 << DAYDREAM_CIRCLE_BUTTON_BIT,
50 DAYDREAM_BAR_BUTTON_MASK = 1 << DAYDREAM_BAR_BUTTON_BIT,
51 DAYDREAM_VOLUP_BUTTON_MASK = 1 << DAYDREAM_VOLUP_BUTTON_BIT,
52 DAYDREAM_VOLDN_BUTTON_MASK = 1 << DAYDREAM_VOLDN_BUTTON_BIT,
59 uint16_t timestamp_last;
100 #define DAYDREAM_SPEW(c, ...) \ 102 if (c->print_spew) { \ 103 fprintf(stderr, "%s - ", __func__); \ 104 fprintf(stderr, __VA_ARGS__); \ 105 fprintf(stderr, "\n"); \ 109 #define DAYDREAM_DEBUG(c, ...) \ 111 if (c->print_debug) { \ 112 fprintf(stderr, "%s - ", __func__); \ 113 fprintf(stderr, __VA_ARGS__); \ 114 fprintf(stderr, "\n"); \ 118 #define DAYDREAM_ERROR(c, ...) \ 120 fprintf(stderr, "%s - ", __func__); \ 121 fprintf(stderr, __VA_ARGS__); \ 122 fprintf(stderr, "\n"); \ A IMU fusion specially made for 3dof devices.
This is a common IMU pre-filter which takes raw 'ticks' from an IMU measurement and converts it into ...
Definition: m_imu_pre.h:46
A parsed sample of accel and gyro.
Definition: daydream_device.h:30
Wrapper around OS threading native functions.
Header defining a xrt HMD device.
A 2 element vector with 32 bit integers.
Definition: xrt_defines.h:155
All in one helper that handles locking, waiting for change and starting a thread. ...
Definition: os_threading.h:149
A 3 element vector with 32 bit integers.
Definition: xrt_defines.h:143
Definition: daydream_device.h:64
A wrapper around a native mutex.
Definition: os_threading.h:39
Representing a single ble notify attribute on a device.
Definition: os_ble.h:27
A single HMD or input device.
Definition: xrt_device.h:203
C interface to math library.
Definition: m_imu_3dof.h:34
Wrapper around OS native BLE functions.