44 enum contactglove_type type;
48 uint8_t last_sent_ping_nonce;
58enum contactglove_device_inputs
60 CONTACTGLOVE_DEVICE_INPUT_HT_UNOBSTRUCTED = 0,
61 CONTACTGLOVE_DEVICE_INPUT_A_CLICK,
62 CONTACTGLOVE_DEVICE_INPUT_B_CLICK,
63 CONTACTGLOVE_DEVICE_INPUT_X_CLICK,
64 CONTACTGLOVE_DEVICE_INPUT_Y_CLICK,
65 CONTACTGLOVE_DEVICE_INPUT_SYSTEM_CLICK,
66 CONTACTGLOVE_DEVICE_INPUT_PAIRING_CLICK,
67 CONTACTGLOVE_DEVICE_INPUT_TRIGGER_VALUE,
68 CONTACTGLOVE_DEVICE_INPUT_TRIGGER_CLICK,
69 CONTACTGLOVE_DEVICE_INPUT_SQUEEZE_VALUE,
70 CONTACTGLOVE_DEVICE_INPUT_THUMBSTICK,
71 CONTACTGLOVE_DEVICE_INPUT_THUMBSTICK_CLICK,
72 CONTACTGLOVE_DEVICE_INPUT_GRIP_POSE,
73 CONTACTGLOVE_DEVICE_INPUT_AIM_POSE,
74 CONTACTGLOVE_DEVICE_INPUT_COUNT,
91 uint8_t last_received_ping_nonce;
93 uint16_t glove_to_dongle_ms;
98 bool magnetra2_connected;
105 bool module_state_valid[CONTACTGLOVE_MODULE_MAX];
113 uint16_t raw_flex_adc_values[CONTACTGLOVE2_SENSOR_COUNT];
119 enum contactglove_device_role role;
u_logging_level
Logging level enum.
Definition u_logging.h:45
int64_t timepoint_ns
Integer timestamp type.
Definition u_time.h:77
xrt_hand
Enumeration for left and right hand.
Definition xrt_defines.h:1568
Small utility for keeping track of the history of an xrt_space_relation, ie.
Wrapper around OS threading native functions.
Definition m_relation_history.cpp:50
A wrapper around a native mutex.
Definition os_threading.h:69
Representing a single serial interface on a device.
Definition os_serial.h:33
All in one helper that handles locking, waiting for change and starting a thread.
Definition os_threading.h:500
A streaming COBS (Consistent Overhead Byte Stuffing) decoder with automatic error recovery.
Definition u_cobs.h:32
A single HMD or input device.
Definition xrt_device.h:328
A quaternion with single floats.
Definition xrt_defines.h:246
A base class for reference counted objects.
Definition xrt_defines.h:99
Code to decode and encode COBS (Consistent Overhead Byte Stuffing) packet data.
Hand Tracking API interface.
Basic logging functionality.
Common defines and enums for XRT.
Header defining an xrt display or controller device.