mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 04:34:38 +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"
|
||||
|
||||
HMDScriptingInterface::HMDScriptingInterface() {
|
||||
connect(qApp, &Application::activeDisplayPluginChanged, [this]{
|
||||
emit displayModeChanged(isHMDMode());
|
||||
});
|
||||
}
|
||||
|
||||
glm::vec3 HMDScriptingInterface::calculateRayUICollisionPoint(const glm::vec3& position, const glm::vec3& direction) const {
|
||||
|
|
|
@ -31,6 +31,7 @@ public:
|
|||
|
||||
signals:
|
||||
void IPDScaleChanged();
|
||||
void displayModeChanged(bool isHMDMode);
|
||||
|
||||
private:
|
||||
float _IPDScale{ 1.0 };
|
||||
|
|
Loading…
Reference in a new issue