The open source OpenXR runtime
0
fork

Configure Feed

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

d/survive: use controller emulation for hand-tracking

+7 -1
+1
src/xrt/drivers/CMakeLists.txt
··· 261 261 262 262 if(XRT_BUILD_DRIVER_HANDTRACKING) 263 263 target_link_libraries(drv_survive PRIVATE drv_ht) 264 + target_link_libraries(drv_survive PRIVATE drv_cemu) 264 265 endif() 265 266 endif() 266 267
+6 -1
src/xrt/drivers/survive/survive_driver.c
··· 49 49 50 50 #include "../ht/ht_interface.h" 51 51 #include "../multi_wrapper/multi.h" 52 + #include "../ht_ctrl_emu/ht_ctrl_emu_interface.h" 52 53 #include "xrt/xrt_config_drivers.h" 53 54 54 55 #include "survive_driver.h" ··· 1406 1407 struct xrt_device *wrap = 1407 1408 multi_create_tracking_override(XRT_TRACKING_OVERRIDE_ATTACHED, ht, &ss->hmd->base, 1408 1409 XRT_INPUT_GENERIC_HEAD_POSE, &head_in_left_cam); 1409 - out_xdevs[out_idx++] = wrap; 1410 + struct xrt_device *two_hands[2]; 1411 + cemu_devices_create(&ss->hmd->base, wrap, two_hands); 1412 + 1413 + out_xdevs[out_idx++] = two_hands[0]; 1414 + out_xdevs[out_idx++] = two_hands[1]; 1410 1415 } 1411 1416 // Don't need it anymore. And it's not even created unless we hit this codepath, which is somewhat hard. 1412 1417 t_stereo_camera_calibration_reference(&cal, NULL);