summaryrefslogtreecommitdiffstats
path: root/osdep/macosx_events.m
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-08-13 14:52:49 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-08-13 23:02:43 +0200
commit11dad6d44b7e969f32f00379cea514101a46a0ac (patch)
treeb744840786a09f00d507c74e435255eed579f320 /osdep/macosx_events.m
parent36586dd7b7ad0a9145ab28f0245a7f00227a7ce8 (diff)
downloadmpv-11dad6d44b7e969f32f00379cea514101a46a0ac.tar.bz2
mpv-11dad6d44b7e969f32f00379cea514101a46a0ac.tar.xz
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.
Diffstat (limited to 'osdep/macosx_events.m')
-rw-r--r--osdep/macosx_events.m16
1 files changed, 3 insertions, 13 deletions
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)