diff --git a/interface/src/devices/EyeTracker.cpp b/interface/src/devices/EyeTracker.cpp index a384202255..4cb205d158 100644 --- a/interface/src/devices/EyeTracker.cpp +++ b/interface/src/devices/EyeTracker.cpp @@ -34,12 +34,12 @@ EyeTracker::~EyeTracker() { #endif } +#ifdef HAVE_IVIEWHMD void EyeTracker::processData(smi_CallbackDataStruct* data) { if (!_isEnabled) { return; } -#ifdef HAVE_IVIEWHMD if (data->type == SMI_SIMPLE_GAZE_SAMPLE) { // Calculate the intersections of the left and right eye look-at vectors with a vertical plane along the monocular // gaze direction. Average these positions to give the look-at point. @@ -91,8 +91,8 @@ void EyeTracker::processData(smi_CallbackDataStruct* data) { } } } -#endif } +#endif void EyeTracker::init() { if (_isInitialized) { @@ -143,6 +143,7 @@ void EyeTracker::reset() { // Nothing to do. } +#ifdef HAVE_IVIEWHMD QString EyeTracker::smiReturnValueToString(int value) { switch (value) { @@ -168,3 +169,4 @@ QString EyeTracker::smiReturnValueToString(int value) { return number; } } +#endif diff --git a/interface/src/devices/EyeTracker.h b/interface/src/devices/EyeTracker.h index c41d529e91..b0b848a6de 100644 --- a/interface/src/devices/EyeTracker.h +++ b/interface/src/devices/EyeTracker.h @@ -17,7 +17,9 @@ #include #include +#ifdef HAVE_IVIEWHMD #include +#endif class EyeTracker : public QObject, public Dependency { @@ -32,7 +34,9 @@ public: glm::vec3 getLookAtPosition() { return _lookAtPosition; } // From mid eye point in head frame. +#ifdef HAVE_IVIEWHMD void processData(smi_CallbackDataStruct* data); +#endif public slots: void init();