converted tabs to spaces in iOS/UIKit PumpEvents code
This commit is contained in:
parent
78b69734b8
commit
9bb95ef16a
1 changed files with 15 additions and 15 deletions
|
@ -57,25 +57,25 @@ UIKit_PumpEvents(_THIS)
|
||||||
*/
|
*/
|
||||||
if (setjmp(*jump_env()) == 0) {
|
if (setjmp(*jump_env()) == 0) {
|
||||||
/* if we're setting the jump, rather than jumping back */
|
/* if we're setting the jump, rather than jumping back */
|
||||||
|
|
||||||
/* Let the run loop run for a short amount of time: long enough for
|
/* Let the run loop run for a short amount of time: long enough for
|
||||||
touch events to get processed (which is important to get certain
|
touch events to get processed (which is important to get certain
|
||||||
elements of Game Center's GKLeaderboardViewController to respond
|
elements of Game Center's GKLeaderboardViewController to respond
|
||||||
to touch input), but not long enough to introduce a significant
|
to touch input), but not long enough to introduce a significant
|
||||||
delay in the rest of the app.
|
delay in the rest of the app.
|
||||||
*/
|
*/
|
||||||
const CFTimeInterval seconds = 0.000002;
|
const CFTimeInterval seconds = 0.000002;
|
||||||
|
|
||||||
/* Pump most event types. */
|
/* Pump most event types. */
|
||||||
SInt32 result;
|
SInt32 result;
|
||||||
do {
|
do {
|
||||||
result = CFRunLoopRunInMode(kCFRunLoopDefaultMode, seconds, TRUE);
|
result = CFRunLoopRunInMode(kCFRunLoopDefaultMode, seconds, TRUE);
|
||||||
} while (result == kCFRunLoopRunHandledSource);
|
} while (result == kCFRunLoopRunHandledSource);
|
||||||
|
|
||||||
/* Make sure UIScrollView objects scroll properly. */
|
/* Make sure UIScrollView objects scroll properly. */
|
||||||
do {
|
do {
|
||||||
result = CFRunLoopRunInMode((CFStringRef)UITrackingRunLoopMode, seconds, TRUE);
|
result = CFRunLoopRunInMode((CFStringRef)UITrackingRunLoopMode, seconds, TRUE);
|
||||||
} while(result == kCFRunLoopRunHandledSource);
|
} while(result == kCFRunLoopRunHandledSource);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue