26 enum u_device_alloc_flags
29 U_DEVICE_ALLOC_HMD = 1 << 0,
30 U_DEVICE_ALLOC_TRACKING_NONE = 1 << 1,
44 float lens_horizontal_separation_meters;
45 float lens_vertical_position_meters;
73 #define U_DEVICE_ALLOCATE(type, flags, num_inputs, num_outputs) \ 74 ((type *)u_device_allocate(flags, sizeof(type), num_inputs, \ Header defining a xrt HMD device.
bool u_device_setup_split_side_by_side(struct xrt_device *xdev, const struct u_device_simple_info *info)
Setup the device information given a very simple info struct.
Definition: u_device.c:142
Definition: u_device.h:34
Header defining the tracking system integration in Monado.
void u_device_dump_config(struct xrt_device *xdev, const char *prefix, const char *prod)
Dump the device config to stderr.
Definition: u_device.c:86
void u_device_free(struct xrt_device *xdev)
Helper function to free a device and any data hanging of it.
Definition: u_device.c:283
void * u_device_allocate(enum u_device_alloc_flags flags, size_t size, size_t num_inputs, size_t num_outputs)
Helper function to allocate a device plus inputs in the same allocation placed after the device in me...
Definition: u_device.c:221
Header holding common defines.
A single HMD or input device.
Definition: xrt_device.h:203
A tightly packed 2x2 matrix of floats.
Definition: xrt_defines.h:253