MCPcopy Create free account
hub / github.com/LibreVR/Revive / ovr_GetTrackingState

Function ovr_GetTrackingState

ReviveXR/REV_CAPI.cpp:408–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408OVR_PUBLIC_FUNCTION(ovrTrackingState) ovr_GetTrackingState(ovrSession session, double absTime, ovrBool latencyMarker)
409{
410 REV_TRACE(ovr_GetTrackingState);
411
412 ovrTrackingState state = { 0 };
413 if (session && session->Input)
414 {
415 std::shared_lock<std::shared_mutex> lk(session->TrackingMutex);
416 session->Input->GetTrackingState(session, &state, absTime);
417 }
418 return state;
419}
420
421OVR_PUBLIC_FUNCTION(ovrResult) ovr_GetDevicePoses(ovrSession session, ovrTrackedDeviceType* deviceTypes, int deviceCount, double absTime, ovrPoseStatef* outDevicePoses)
422{

Callers 1

Calls 1

GetTrackingStateMethod · 0.45

Tested by

no test coverage detected