From b8471251e785c0c41fdb396c1c55a5fe76363dc2 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 20 Oct 2021 18:44:11 +0300 Subject: iOS: Tell SDL not to bother with mouse events --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/main.c b/src/main.c index 146f13f2..e735f713 100644 --- a/src/main.c +++ b/src/main.c @@ -70,6 +70,9 @@ int main(int argc, char **argv) { SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0"); #if 0 SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "1"); /* debugging! */ +#endif +#if defined (iPlatformAppleMobile) + SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0"); #endif if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER)) { fprintf(stderr, "[SDL] init failed: %s\n", SDL_GetError()); -- cgit v1.2.3