51 #define OH_SPEW(c, ...) \ 53 if (c->print_spew) { \ 54 fprintf(stderr, "%s - ", __func__); \ 55 fprintf(stderr, __VA_ARGS__); \ 56 fprintf(stderr, "\n"); \ 60 #define OH_DEBUG(c, ...) \ 62 if (c->print_debug) { \ 63 fprintf(stderr, "%s - ", __func__); \ 64 fprintf(stderr, __VA_ARGS__); \ 65 fprintf(stderr, "\n"); \ 69 #define OH_ERROR(c, ...) \ 71 fprintf(stderr, "%s - ", __func__); \ 72 fprintf(stderr, __VA_ARGS__); \ 73 fprintf(stderr, "\n"); \ struct ohmd_device ohmd_device
Definition: oh_device.h:20
struct xrt_device base
Definition: oh_device.h:24
Definition: oh_device.h:22
ohmd_context * ctx
Definition: oh_device.h:25
Header defining a xrt HMD device.
A relation with two spaces, includes velocity and acceleration.
Definition: xrt_defines.h:336
bool enable_finite_difference
Definition: oh_device.h:35
bool print_debug
Definition: oh_device.h:34
struct oh_device * oh_device_create(ohmd_context *ctx, ohmd_device *dev, const char *prod, bool print_spew, bool print_debug)
Definition: oh_device.c:376
struct ohmd_context ohmd_context
Definition: oh_device.h:19
bool skip_ang_vel
Definition: oh_device.h:28
int64_t last_update
Definition: oh_device.h:30
ohmd_device * dev
Definition: oh_device.h:26
bool print_spew
Definition: oh_device.h:33
A single HMD or input device.
Definition: xrt_device.h:202
C interface to math library.
struct xrt_space_relation last_relation
Definition: oh_device.h:31