From 11dad6d44b7e969f32f00379cea514101a46a0ac Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 13 Aug 2013 14:52:49 +0200 Subject: macosx: remove platform specific input queue Since last commit the input queue in the core is thread safe, so there is no need for all this platform specific stuff anymore. --- osdep/macosx_events.m | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'osdep/macosx_events.m') diff --git a/osdep/macosx_events.m b/osdep/macosx_events.m index fe5376bd9c..dfa43a0437 100644 --- a/osdep/macosx_events.m +++ b/osdep/macosx_events.m @@ -150,26 +150,16 @@ static CGEventRef tap_event_callback(CGEventTapProxy proxy, CGEventType type, } void cocoa_init_media_keys(void) { - Application *app = mpv_shared_app(); - [app.eventsResponder startMediaKeys]; + [mpv_shared_app().eventsResponder startMediaKeys]; } void cocoa_uninit_media_keys(void) { - Application *app = mpv_shared_app(); - [app.eventsResponder stopMediaKeys]; -} - -void cocoa_check_events(void) -{ - Application *app = mpv_shared_app(); - int key; - while ((key = [app.iqueue pop]) >= 0) - mp_input_put_key(app.inputContext, key); + [mpv_shared_app().eventsResponder stopMediaKeys]; } void cocoa_put_key(int keycode) { - [mpv_shared_app().iqueue push:keycode]; + mp_input_put_key(mpv_shared_app().inputContext, keycode); } void cocoa_put_key_with_modifiers(int keycode, int modifiers) -- cgit v1.2.3