mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
d/remote: Use vive_bindings helper library
This commit is contained in:
parent
7f73a58045
commit
93d92ec6a7
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue