The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

d/survive: Add SURVIVE_DISABLE_HAND_EMULATION env variable

authored by

Nova and committed by
Jakob Bornecrantz
f2ec7a7d 81818b3d

+3 -1
+3 -1
src/xrt/drivers/survive/survive_driver.c
··· 70 70 // initializing survive_driver once creates xrt_devices for all connected devices 71 71 static bool survive_already_initialized = false; 72 72 73 + DEBUG_GET_ONCE_BOOL_OPTION(survive_disable_hand_emulation, "SURVIVE_DISABLE_HAND_EMULATION", false) 74 + 73 75 #define SURVIVE_TRACE(d, ...) U_LOG_XDEV_IFL_T(&d->base, d->sys->log_level, __VA_ARGS__) 74 76 #define SURVIVE_DEBUG(d, ...) U_LOG_XDEV_IFL_D(&d->base, d->sys->log_level, __VA_ARGS__) 75 77 #define SURVIVE_INFO(d, ...) U_LOG_XDEV_IFL_I(&d->base, d->sys->log_level, __VA_ARGS__) ··· 1109 1111 survive->base.binding_profiles = binding_profiles_index; 1110 1112 survive->base.binding_profile_count = ARRAY_SIZE(binding_profiles_index); 1111 1113 1112 - survive->base.hand_tracking_supported = true; 1114 + survive->base.hand_tracking_supported = !debug_get_bool_option_survive_disable_hand_emulation(); 1113 1115 1114 1116 } else if (survive->ctrl.config.variant == CONTROLLER_VIVE_WAND) { 1115 1117 survive->base.name = XRT_DEVICE_VIVE_WAND;