The open source OpenXR runtime
0
fork

Configure Feed

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

d/steamvr_lh: Implement Context::VendorSpecificEvent

Which allows clients to submit to the event queue.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2426>

averyv be27f392 8731b6db

+10 -1
+10 -1
src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
··· 356 356 vr::EVREventType eventType, 357 357 const vr::VREvent_Data_t &eventData, 358 358 double eventTimeOffset) 359 - {} 359 + { 360 + std::lock_guard lk(event_queue_mut); 361 + events.push_back({std::chrono::steady_clock::now(), 362 + { 363 + .eventType = eventType, 364 + .trackedDeviceIndex = unWhichDevice, 365 + .eventAgeSeconds = {}, 366 + .data = eventData, 367 + }}); 368 + } 360 369 361 370 bool 362 371 Context::IsExiting()