Automatically enter first person when in HMD mode
Showing the changes to interface/src/scripting/HMDScriptingInterface.cpp (1 of 4 files). Show all
Unified · Split
| @@ -19,6 +19,9 @@ · 18 unmodified lines | |||
| 19 | #include "Application.h" | 19 | #include "Application.h" |
| 20 | 20 | ||
| 21 | HMDScriptingInterface::HMDScriptingInterface() { | 21 | HMDScriptingInterface::HMDScriptingInterface() { |
| 22 | connect(qApp, &Application::activeDisplayPluginChanged, [this]{ | ||
| 23 | emit displayModeChanged(isHMDMode()); | ||
| 24 | }); | ||
| 22 | } | 25 | } |
| 23 | 26 | ||
| 24 | glm::vec3 HMDScriptingInterface::calculateRayUICollisionPoint(const glm::vec3& position, const glm::vec3& direction) const { | 27 | glm::vec3 HMDScriptingInterface::calculateRayUICollisionPoint(const glm::vec3& position, const glm::vec3& direction) const { |