The open source OpenXR runtime
0
fork

Configure Feed

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

d/steamvr_lh: Add vive and index bindings

+17 -1
-1
src/xrt/drivers/steamvr_lh/device.hpp
··· 83 83 84 84 private: 85 85 vr::ITrackedDeviceServerDriver *driver; 86 - std::vector<xrt_binding_profile> binding_profiles_vec; 87 86 uint64_t current_frame{0}; 88 87 89 88 std::mutex frame_mutex;
+17
src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
··· 22 22 #include "interfaces/context.hpp" 23 23 #include "device.hpp" 24 24 #include "util/u_device.h" 25 + #include "vive/vive_bindings.h" 25 26 26 27 namespace { 27 28 ··· 212 213 CTX_ERR("Activating controller failed: error %u", err); 213 214 return false; 214 215 } 216 + 217 + enum xrt_device_name name = controller[device_idx]->name; 218 + switch (name) { 219 + case XRT_DEVICE_VIVE_WAND: 220 + controller[device_idx]->binding_profiles = vive_binding_profiles_wand; 221 + controller[device_idx]->binding_profile_count = vive_binding_profiles_wand_count; 222 + break; 223 + 224 + break; 225 + case XRT_DEVICE_INDEX_CONTROLLER: 226 + controller[device_idx]->binding_profiles = vive_binding_profiles_index; 227 + controller[device_idx]->binding_profile_count = vive_binding_profiles_index_count; 228 + break; 229 + default: break; 230 + } 231 + 215 232 return true; 216 233 } 217 234