summarylogtreecommitdiffstats
path: root/fix_build_with_sdl2_2.0.10.patch
blob: 1f859e74d1ec5b8eacbc2c87d927c8f2f2bfa164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/platform/julius.c b/src/platform/julius.c
index 99d8a66a..03669d3d 100644
--- a/src/platform/julius.c
+++ b/src/platform/julius.c
@@ -368,7 +368,10 @@ static int init_sdl(void)
         SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Could not initialize SDL: %s", SDL_GetError());
         return 0;
     }
-#if SDL_VERSION_ATLEAST(2, 0, 4)
+#if SDL_VERSION_ATLEAST(2, 0, 10)
+    SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "0");
+    SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");
+#elif SDL_VERSION_ATLEAST(2, 0, 4)
     SDL_SetHint(SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH, "1");
 #endif
     SDL_Log("SDL initialized");