Only display new menu in VR mode
Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1366,12 +1366,12 @@ void Application::keyPressEvent(QKeyEvent* event) { · 1365 unmodified lines | ||
| 1366 | 1366 | } |
| 1367 | 1367 | |
| 1368 | 1368 | |
| 1369 | −//#define VR_MENU_ONLY_IN_HMD | |
| 1369 | +#define VR_MENU_ONLY_IN_HMD | |
| 1370 | 1370 | |
| 1371 | 1371 | void Application::keyReleaseEvent(QKeyEvent* event) { |
| 1372 | 1372 | if (event->key() == Qt::Key_Alt && _altPressed && _window->isActiveWindow()) { |
| 1373 | 1373 | #ifdef VR_MENU_ONLY_IN_HMD |
| 1374 | − if (OculusManager::isConnected()) { | |
| 1374 | + if (isHMDMode()) { | |
| 1375 | 1375 | #endif |
| 1376 | 1376 | VrMenu::toggle(); |
| 1377 | 1377 | #ifdef VR_MENU_ONLY_IN_HMD |