summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-20 18:44:11 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-20 18:44:11 +0300
commitb8471251e785c0c41fdb396c1c55a5fe76363dc2 (patch)
tree56fe365d483f91e87c562ee6bd4b0ef71db096b2
parent851bc03a3ca740dc6879438392a25d8eb8c5a104 (diff)
iOS: Tell SDL not to bother with mouse events
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 146f13f2..e735f713 100644
--- a/src/main.c
+++ b/src/main.c
@@ -71,6 +71,9 @@ int main(int argc, char **argv) {
71#if 0 71#if 0
72 SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "1"); /* debugging! */ 72 SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "1"); /* debugging! */
73#endif 73#endif
74#if defined (iPlatformAppleMobile)
75 SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");
76#endif
74 if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER)) { 77 if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER)) {
75 fprintf(stderr, "[SDL] init failed: %s\n", SDL_GetError()); 78 fprintf(stderr, "[SDL] init failed: %s\n", SDL_GetError());
76 return -1; 79 return -1;