| 35 | } |
| 36 | |
| 37 | static 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 | |
| 47 | struct TrackingData { |
| 48 | float x, y, z; |