mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 21:30:33 +02:00
Enclose entire functions in ifdef
This commit is contained in:
parent
dde11c5cd1
commit
4ccc2bbcd0
2 changed files with 8 additions and 15 deletions
|
@ -2304,8 +2304,8 @@ void Application::setActiveFaceTracker() {
|
|||
#endif
|
||||
}
|
||||
|
||||
void Application::setActiveEyeTracker() {
|
||||
#ifdef HAVE_IVIEWHMD
|
||||
void Application::setActiveEyeTracker() {
|
||||
auto eyeTracker = DependencyManager::get<EyeTracker>();
|
||||
if (!eyeTracker->isInitialized()) {
|
||||
return;
|
||||
|
@ -2318,29 +2318,20 @@ void Application::setActiveEyeTracker() {
|
|||
Menu::getInstance()->getActionForOption(MenuOption::OnePointCalibration)->setEnabled(isEyeTracking && !isSimulating);
|
||||
Menu::getInstance()->getActionForOption(MenuOption::ThreePointCalibration)->setEnabled(isEyeTracking && !isSimulating);
|
||||
Menu::getInstance()->getActionForOption(MenuOption::FivePointCalibration)->setEnabled(isEyeTracking && !isSimulating);
|
||||
#endif
|
||||
}
|
||||
|
||||
void Application::calibrateEyeTracker1Point() {
|
||||
#ifdef HAVE_IVIEWHMD
|
||||
auto eyeTracker = DependencyManager::get<EyeTracker>();
|
||||
eyeTracker->calibrate(1);
|
||||
#endif
|
||||
DependencyManager::get<EyeTracker>()->calibrate(1);
|
||||
}
|
||||
|
||||
void Application::calibrateEyeTracker3Points() {
|
||||
#ifdef HAVE_IVIEWHMD
|
||||
auto eyeTracker = DependencyManager::get<EyeTracker>();
|
||||
eyeTracker->calibrate(3);
|
||||
#endif
|
||||
DependencyManager::get<EyeTracker>()->calibrate(3);
|
||||
}
|
||||
|
||||
void Application::calibrateEyeTracker5Points() {
|
||||
#ifdef HAVE_IVIEWHMD
|
||||
auto eyeTracker = DependencyManager::get<EyeTracker>();
|
||||
eyeTracker->calibrate(5);
|
||||
#endif
|
||||
DependencyManager::get<EyeTracker>()->calibrate(5);
|
||||
}
|
||||
#endif
|
||||
|
||||
bool Application::exportEntities(const QString& filename, const QVector<EntityItemID>& entityIDs) {
|
||||
QVector<EntityItemPointer> entities;
|
||||
|
|
|
@ -350,11 +350,13 @@ public slots:
|
|||
|
||||
void resetSensors();
|
||||
void setActiveFaceTracker();
|
||||
|
||||
|
||||
#ifdef HAVE_IVIEWHMD
|
||||
void setActiveEyeTracker();
|
||||
void calibrateEyeTracker1Point();
|
||||
void calibrateEyeTracker3Points();
|
||||
void calibrateEyeTracker5Points();
|
||||
#endif
|
||||
|
||||
void aboutApp();
|
||||
void showEditEntitiesHelp();
|
||||
|
|
Loading…
Reference in a new issue