diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-20 18:44:11 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-20 18:44:11 +0300 |
commit | b8471251e785c0c41fdb396c1c55a5fe76363dc2 (patch) | |
tree | 56fe365d483f91e87c562ee6bd4b0ef71db096b2 /src | |
parent | 851bc03a3ca740dc6879438392a25d8eb8c5a104 (diff) |
iOS: Tell SDL not to bother with mouse events
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |