mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
HMD.VRMode -> HMD.active , and hooked it to a function which isn't dependent on HMD type, since there will be more HMD's than Oculus supported in the near future.
This commit is contained in:
parent
ca4d493ec9
commit
0f6ad4eba0
1 changed files with 2 additions and 3 deletions
|
@ -13,12 +13,11 @@
|
|||
#define hifi_HMDScriptingInterface_h
|
||||
|
||||
#include "Application.h"
|
||||
#include "devices/OculusManager.h"
|
||||
|
||||
class HMDScriptingInterface : public QObject {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(bool magnifier READ getMagnifier)
|
||||
Q_PROPERTY(bool VRMode READ getVRMode)
|
||||
Q_PROPERTY(bool active READ isHMDMode)
|
||||
public:
|
||||
static HMDScriptingInterface& getInstance();
|
||||
|
||||
|
@ -28,7 +27,7 @@ public slots:
|
|||
private:
|
||||
HMDScriptingInterface() {};
|
||||
bool getMagnifier() const { return Application::getInstance()->getApplicationOverlay().hasMagnifier(); };
|
||||
bool getVRMode() const { return OculusManager::isConnected(); }
|
||||
bool isHMDMode() const { return Application::getInstance()->isHMDMode(); }
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue