46 lines
1.4 KiB
Diff
46 lines
1.4 KiB
Diff
diff --git a/SDL/SDLMain.cpp b/SDL/SDLMain.cpp
|
|
index 85b4982..4aae124 100644
|
|
--- a/SDL/SDLMain.cpp
|
|
+++ b/SDL/SDLMain.cpp
|
|
@@ -533,9 +533,7 @@ int main(int argc, char *argv[]) {
|
|
printf("Init from thread error: '%s'\n", error_message.c_str());
|
|
}
|
|
|
|
-#ifdef MOBILE_DEVICE
|
|
SDL_ShowCursor(SDL_DISABLE);
|
|
-#endif
|
|
|
|
if (!useEmuThread) {
|
|
NativeInitGraphics(graphicsContext);
|
|
@@ -608,14 +606,7 @@ int main(int argc, char *argv[]) {
|
|
}
|
|
|
|
// Set variable here in case fullscreen was toggled by hotkey
|
|
- g_Config.bFullScreen = fullscreen;
|
|
-
|
|
- // 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);
|
|
- }
|
|
+ g_Config.bFullScreen = fullscreen;
|
|
break;
|
|
}
|
|
|
|
@@ -754,15 +745,6 @@ int main(int argc, char *argv[]) {
|
|
}
|
|
if (g_QuitRequested)
|
|
break;
|
|
-#if !defined(MOBILE_DEVICE)
|
|
- if (lastUIState != GetUIState()) {
|
|
- lastUIState = GetUIState();
|
|
- if (lastUIState == UISTATE_INGAME && g_Config.bFullScreen && !g_Config.bShowTouchControls)
|
|
- SDL_ShowCursor(SDL_DISABLE);
|
|
- if (lastUIState != UISTATE_INGAME || !g_Config.bFullScreen)
|
|
- SDL_ShowCursor(SDL_ENABLE);
|
|
- }
|
|
-#endif
|
|
|
|
if (framecount % 60 == 0) {
|
|
// glsl_refresh(); // auto-reloads modified GLSL shaders once per second.
|