diff --git a/src/xrt/auxiliary/CMakeLists.txt b/src/xrt/auxiliary/CMakeLists.txt index 7b789b55e..c12316159 100644 --- a/src/xrt/auxiliary/CMakeLists.txt +++ b/src/xrt/auxiliary/CMakeLists.txt @@ -40,7 +40,7 @@ add_subdirectory(tracking) add_subdirectory(util) # Vive helper library. -if(XRT_BUILD_DRIVER_VIVE OR XRT_BUILD_DRIVER_SURVIVE) +if(XRT_BUILD_DRIVER_VIVE OR XRT_BUILD_DRIVER_SURVIVE OR XRT_BUILD_DRIVER_REMOTE) add_subdirectory(vive) endif() diff --git a/src/xrt/drivers/CMakeLists.txt b/src/xrt/drivers/CMakeLists.txt index f8c085832..2d1e22a33 100644 --- a/src/xrt/drivers/CMakeLists.txt +++ b/src/xrt/drivers/CMakeLists.txt @@ -160,7 +160,7 @@ if(XRT_BUILD_DRIVER_REMOTE) remote/r_interface.h remote/r_internal.h ) - target_link_libraries(drv_remote PRIVATE xrt-interfaces aux_util) + target_link_libraries(drv_remote PRIVATE xrt-interfaces aux_util aux_vive) list(APPEND ENABLED_HEADSET_DRIVERS remote) endif() diff --git a/src/xrt/drivers/remote/r_device.c b/src/xrt/drivers/remote/r_device.c index 83dbedc75..8e3c53440 100644 --- a/src/xrt/drivers/remote/r_device.c +++ b/src/xrt/drivers/remote/r_device.c @@ -15,6 +15,8 @@ #include "util/u_device.h" #include "util/u_hand_tracking.h" +#include "vive/vive_bindings.h" + #include "math/m_api.h" #include "r_internal.h" @@ -212,6 +214,8 @@ r_device_create(struct r_hub *r, bool is_left) rd->base.position_tracking_supported = true; rd->base.hand_tracking_supported = true; rd->base.name = XRT_DEVICE_INDEX_CONTROLLER; + rd->base.binding_profiles = vive_binding_profiles_index; + rd->base.binding_profile_count = vive_binding_profiles_index_count; rd->r = r; rd->is_left = is_left;