mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
(Cocoa) Rewrite poll_iteration
This commit is contained in:
parent
4b0401462f
commit
8e9bb03301
@ -207,14 +207,15 @@ static char** waiting_argv;
|
||||
|
||||
static void poll_iteration(void)
|
||||
{
|
||||
NSEvent *event = NULL;
|
||||
|
||||
do
|
||||
while (1)
|
||||
{
|
||||
event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate distantPast] inMode:NSDefaultRunLoopMode dequeue:YES];
|
||||
|
||||
NSEvent *event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate distantPast] inMode:NSDefaultRunLoopMode dequeue:YES];
|
||||
if (!event)
|
||||
break;
|
||||
[event retain];
|
||||
[NSApp sendEvent: event];
|
||||
}while(event != nil);
|
||||
[event release];
|
||||
};
|
||||
}
|
||||
|
||||
- (void) rarch_main
|
||||
|
Loading…
Reference in New Issue
Block a user