distribution/packages/emulators/standalone/ppsspp-sa/patches/003-disable-mouse.patch
2023-08-13 19:54:57 +00:00

30 lines
1 KiB
Diff

diff --git a/SDL/SDLMain.cpp b/SDL/SDLMain.cpp
index d81157d83..3eaf5af42 100644
--- a/SDL/SDLMain.cpp
+++ b/SDL/SDLMain.cpp
@@ -996,12 +996,7 @@ int main(int argc, char *argv[]) {
g_Config.iWindowWidth = new_width;
g_Config.iWindowHeight = new_height;
}
- // Hide/Show cursor correctly toggling fullscreen
- if (lastUIState == UISTATE_INGAME && fullscreen && !g_Config.bShowTouchControls) {
- SDL_ShowCursor(SDL_DISABLE);
- } else if (lastUIState != UISTATE_INGAME || !fullscreen) {
- SDL_ShowCursor(SDL_ENABLE);
- }
+ SDL_ShowCursor(SDL_DISABLE);
break;
}
@@ -1295,10 +1290,7 @@ int main(int argc, char *argv[]) {
#if !defined(MOBILE_DEVICE)
if (lastUIState != GetUIState()) {
lastUIState = GetUIState();
- if (lastUIState == UISTATE_INGAME && g_Config.UseFullScreen() && !g_Config.bShowTouchControls)
- SDL_ShowCursor(SDL_DISABLE);
- if (lastUIState != UISTATE_INGAME || !g_Config.UseFullScreen())
- SDL_ShowCursor(SDL_ENABLE);
+ SDL_ShowCursor(SDL_DISABLE);
}
#endif