From d67b687530967780f54a4a6a8fa89655394afbb8 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 2 Jun 2013 18:21:45 +0200 Subject: macosx_events: send all queued events Seeking feels a little faster or it may be self suggestion. There's really no reason to just send only one event at a time. --- osdep/macosx_events.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'osdep/macosx_events.m') diff --git a/osdep/macosx_events.m b/osdep/macosx_events.m index 434fc0cb3b..d1228bb471 100644 --- a/osdep/macosx_events.m +++ b/osdep/macosx_events.m @@ -92,8 +92,9 @@ static int convert_key(unsigned key, unsigned charcode) void cocoa_check_events(void) { Application *app = mpv_shared_app(); - int key = [app.iqueue pop]; - if (key >= 0) mplayer_put_key(app.keyFIFO, key); + int key; + while ((key = [app.iqueue pop]) >= 0) + mplayer_put_key(app.keyFIFO, key); } void cocoa_put_key(int keycode) -- cgit v1.2.3