mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +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) {
|
void Application::keyReleaseEvent(QKeyEvent* event) {
|
||||||
if (event->key() == Qt::Key_Alt && _altPressed && _window->isActiveWindow()) {
|
if (event->key() == Qt::Key_Alt && _altPressed && _window->isActiveWindow()) {
|
||||||
#ifdef VR_MENU_ONLY_IN_HMD
|
#ifdef VR_MENU_ONLY_IN_HMD
|
||||||
if (OculusManager::isConnected()) {
|
if (isHMDMode()) {
|
||||||
#endif
|
#endif
|
||||||
VrMenu::toggle();
|
VrMenu::toggle();
|
||||||
#ifdef VR_MENU_ONLY_IN_HMD
|
#ifdef VR_MENU_ONLY_IN_HMD
|
||||||
|
|
Loading…
Reference in a new issue