mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Merge pull request #4454 from Atlante45/fix_mouse_visible_in_oculus
Hide cursor at MainWindow level when in VRMode
This commit is contained in:
commit
d33d3afb52
1 changed files with 5 additions and 3 deletions
|
@ -2137,10 +2137,12 @@ void Application::updateCursor(float deltaTime) {
|
|||
}
|
||||
|
||||
void Application::updateCursorVisibility() {
|
||||
if (!_cursorVisible || Menu::getInstance()->isOptionChecked(MenuOption::EnableVRMode)) {
|
||||
_glWidget->setCursor(Qt::BlankCursor);
|
||||
if (!_cursorVisible ||
|
||||
Menu::getInstance()->isOptionChecked(MenuOption::EnableVRMode) ||
|
||||
Menu::getInstance()->isOptionChecked(MenuOption::Enable3DTVMode)) {
|
||||
_window->setCursor(Qt::BlankCursor);
|
||||
} else {
|
||||
_glWidget->unsetCursor();
|
||||
_window->unsetCursor();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue