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

Function ovr_GetHmdDesc

Revive/REV_CAPI.cpp:173–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171OVR_PUBLIC_FUNCTION(ovrResult) ovr_IdentifyClient(const char* identity) { return ovrSuccess; /* Debugging feature */ }
172
173OVR_PUBLIC_FUNCTION(ovrHmdDesc) ovr_GetHmdDesc(ovrSession session)
174{
175 REV_TRACE(ovr_GetHmdDesc);
176
177 if (!session)
178 {
179 ovrHmdDesc desc = {};
180 desc.Type = vr::VR_IsHmdPresent() ? ovrHmd_CV1 : ovrHmd_None;
181 return desc;
182 }
183
184 return session->HmdDesc;
185}
186
187OVR_PUBLIC_FUNCTION(unsigned int) ovr_GetTrackerCount(ovrSession session)
188{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected