mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
Only display new menu in VR mode
This commit is contained in:
parent
f56b5fcdcd
commit
f844dcd25f
1 changed files with 2 additions and 2 deletions
|
@ -1366,12 +1366,12 @@ void Application::keyPressEvent(QKeyEvent* event) {
|
|||
}
|
||||
|
||||
|
||||
//#define VR_MENU_ONLY_IN_HMD
|
||||
#define VR_MENU_ONLY_IN_HMD
|
||||
|
||||
void Application::keyReleaseEvent(QKeyEvent* event) {
|
||||
if (event->key() == Qt::Key_Alt && _altPressed && _window->isActiveWindow()) {
|
||||
#ifdef VR_MENU_ONLY_IN_HMD
|
||||
if (OculusManager::isConnected()) {
|
||||
if (isHMDMode()) {
|
||||
#endif
|
||||
VrMenu::toggle();
|
||||
#ifdef VR_MENU_ONLY_IN_HMD
|
||||
|
|
Loading…
Reference in a new issue