mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:42:53 +02:00
Merge pull request #4840 from jherico/menu
Only display new menu in VR mode
This commit is contained in:
commit
b658c26799
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