distribution/packages/emulators/standalone/ppsspp-sa/patches/003-disable-mouse.patch

31 lines
1.1 KiB
Diff
Raw Normal View History

2023-05-01 13:12:01 +00:00
diff --git a/SDL/SDLMain.cpp b/SDL/SDLMain.cpp
2023-08-26 19:52:53 +00:00
index 27695ec2d..e761cb8e8 100644
2023-05-01 13:12:01 +00:00
--- a/SDL/SDLMain.cpp
+++ b/SDL/SDLMain.cpp
2023-08-26 19:52:53 +00:00
@@ -803,12 +803,7 @@ static void ProcessSDLEvent(SDL_Window *window, const SDL_Event &event, InputSta
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;
}
2023-02-22 11:58:29 +00:00
2023-08-26 19:52:53 +00:00
@@ -1444,10 +1439,7 @@ int main(int argc, char *argv[]) {
2023-02-22 11:58:29 +00:00
#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