mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 11:22:10 +02:00
Add signal for display mode change in HMD
This commit is contained in:
parent
41d38ab630
commit
d45694836f
2 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,9 @@
|
||||||
#include "Application.h"
|
#include "Application.h"
|
||||||
|
|
||||||
HMDScriptingInterface::HMDScriptingInterface() {
|
HMDScriptingInterface::HMDScriptingInterface() {
|
||||||
|
connect(qApp, &Application::activeDisplayPluginChanged, [this]{
|
||||||
|
emit displayModeChanged(isHMDMode());
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
glm::vec3 HMDScriptingInterface::calculateRayUICollisionPoint(const glm::vec3& position, const glm::vec3& direction) const {
|
glm::vec3 HMDScriptingInterface::calculateRayUICollisionPoint(const glm::vec3& position, const glm::vec3& direction) const {
|
||||||
|
|
|
@ -31,6 +31,7 @@ public:
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void IPDScaleChanged();
|
void IPDScaleChanged();
|
||||||
|
void displayModeChanged(bool isHMDMode);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
float _IPDScale{ 1.0 };
|
float _IPDScale{ 1.0 };
|
||||||
|
|
Loading…
Reference in a new issue