MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / initOpenVR

Function initOpenVR

plugins/openvr/macro-condition-openvr.cpp:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37static void initOpenVR(vr::EVRInitError &err)
38{
39 openvrSystem = vr::VR_Init(&err, vr::VRApplication_Background);
40 if (openvrSystem) {
41 // Don't kill OBS if SteamVR is exiting
42 std::thread t(processOpenVREvents);
43 t.detach();
44 }
45}
46
47struct TrackingData {
48 float x, y, z;

Callers 1

getOpenVRPosFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected