Showing the changes to plugins/oculus/src/OculusBaseDisplayPlugin.cpp (1 of 5 files). Show all
Unified · Split
| @@ -21,6 +21,15 @@ void OculusBaseDisplayPlugin::resetSensors() { · 20 unmodified lines | |||
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | bool OculusBaseDisplayPlugin::beginFrameRender(uint32_t frameIndex) { | 23 | bool OculusBaseDisplayPlugin::beginFrameRender(uint32_t frameIndex) { |
| 24 | handleOVREvents(); | ||
| 25 | if (quitRequested()) { | ||
| 26 | QMetaObject::invokeMethod(qApp, "quit"); | ||
| 27 | return false; | ||
| 28 | } | ||
| 29 | if (reorientRequested()) { | ||
| 30 | emit resetSensorsRequested(); | ||
| 31 | } | ||
| 32 | |||
| 24 | _currentRenderFrameInfo = FrameInfo(); | 33 | _currentRenderFrameInfo = FrameInfo(); |
| 25 | _currentRenderFrameInfo.sensorSampleTime = ovr_GetTimeInSeconds(); | 34 | _currentRenderFrameInfo.sensorSampleTime = ovr_GetTimeInSeconds(); |
| 26 | _currentRenderFrameInfo.predictedDisplayTime = ovr_GetPredictedDisplayTime(_session, frameIndex); | 35 | _currentRenderFrameInfo.predictedDisplayTime = ovr_GetPredictedDisplayTime(_session, frameIndex); |