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:
Thijs Wenker 2015-01-14 00:07:15 +01:00
parent ca4d493ec9
commit 0f6ad4eba0

View file

@ -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(); }
};