d/remote: Use vive_bindings helper library

This commit is contained in:
Jakob Bornecrantz 2022-05-28 15:17:36 +01:00
parent 7f73a58045
commit 93d92ec6a7
3 changed files with 6 additions and 2 deletions

View file

@ -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()

View file

@ -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()

View file

@ -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;