mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-23 16:19:44 +00:00
Qt Desktop: Hide cursor in fullscreen during gameplay, unless on-screen controls are enabled.
This commit is contained in:
parent
2e324c9842
commit
04a4f31215
@ -90,6 +90,11 @@ void MainWindow::Update()
|
||||
|
||||
if (lastUIState != globalUIState) {
|
||||
lastUIState = globalUIState;
|
||||
if (lastUIState == UISTATE_INGAME && g_Config.bFullScreen && !QApplication::overrideCursor() && !g_Config.bShowTouchControls)
|
||||
QApplication::setOverrideCursor(QCursor(Qt::BlankCursor));
|
||||
if (lastUIState != UISTATE_INGAME && g_Config.bFullScreen && QApplication::overrideCursor())
|
||||
QApplication::restoreOverrideCursor();
|
||||
|
||||
UpdateMenus();
|
||||
}
|
||||
}
|
||||
@ -546,6 +551,9 @@ void MainWindow::on_action_OptionsFullScreen_triggered()
|
||||
ui->menubar->setVisible(true);
|
||||
ui->statusbar->setVisible(true);
|
||||
SetZoom(g_Config.iInternalResolution);
|
||||
if (globalUIState == UISTATE_INGAME && QApplication::overrideCursor())
|
||||
QApplication::restoreOverrideCursor();
|
||||
|
||||
}
|
||||
else {
|
||||
g_Config.bFullScreen = true;
|
||||
@ -575,6 +583,9 @@ void MainWindow::on_action_OptionsFullScreen_triggered()
|
||||
dp_yres = pixel_yres;
|
||||
if (gpu)
|
||||
gpu->Resized();
|
||||
if (globalUIState == UISTATE_INGAME && !g_Config.bShowTouchControls)
|
||||
QApplication::setOverrideCursor(QCursor(Qt::BlankCursor));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user