From 1096f323092a325d2b61b5c526192a9c6f91bf68 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 9 Sep 2016 15:12:09 -0700 Subject: [PATCH] Reverted previous commit which breaks game controller input processing. --- src/video/uikit/SDL_uikitevents.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/video/uikit/SDL_uikitevents.m b/src/video/uikit/SDL_uikitevents.m index 85d6dca5b..7083e204b 100644 --- a/src/video/uikit/SDL_uikitevents.m +++ b/src/video/uikit/SDL_uikitevents.m @@ -56,9 +56,14 @@ UIKit_PumpEvents(_THIS) /* Pump most event types. */ SInt32 result; do { - result = CFRunLoopRunInMode(kCFRunLoopCommonModes, seconds, TRUE); + result = CFRunLoopRunInMode(kCFRunLoopDefaultMode, seconds, TRUE); } while (result == kCFRunLoopRunHandledSource); + /* Make sure UIScrollView objects scroll properly. */ + do { + result = CFRunLoopRunInMode((CFStringRef)UITrackingRunLoopMode, seconds, TRUE); + } while(result == kCFRunLoopRunHandledSource); + /* See the comment in the function definition. */ UIKit_GL_RestoreCurrentContext(); }