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 | 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 | 33 | _currentRenderFrameInfo = FrameInfo(); |
| 25 | 34 | _currentRenderFrameInfo.sensorSampleTime = ovr_GetTimeInSeconds(); |
| 26 | 35 | _currentRenderFrameInfo.predictedDisplayTime = ovr_GetPredictedDisplayTime(_session, frameIndex); |