Pārlūkot izejas kodu

Reverted previous commit which breaks game controller input processing.

Sam Lantinga 8 gadi atpakaļ
vecāks
revīzija
1096f32309
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  1. 6 1
      src/video/uikit/SDL_uikitevents.m

+ 6 - 1
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();
 }