diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-07-03 22:19:26 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-07-03 22:25:45 +0200 |
commit | 8af51bd3fe671b9e43dae16250cc2cf9379d60ef (patch) | |
tree | 4e90fcf98c3e20f64580a06b782588d1f068df91 /osdep/macosx_events.m | |
parent | 56b9dcaabb03498c2ec8e5a00b048582cba0c732 (diff) | |
download | mpv-8af51bd3fe671b9e43dae16250cc2cf9379d60ef.tar.bz2 mpv-8af51bd3fe671b9e43dae16250cc2cf9379d60ef.tar.xz |
cocoa: remove usage of mp_fifo
Update Cocoa parts to remove usage of the mp_fifo internal API to send events
to the core and use the input context directly. This is to follow commits the
work in commits 70a8079c and d603e73c.
Diffstat (limited to 'osdep/macosx_events.m')
-rw-r--r-- | osdep/macosx_events.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/osdep/macosx_events.m b/osdep/macosx_events.m index 9a27f7049b..09578b0dc7 100644 --- a/osdep/macosx_events.m +++ b/osdep/macosx_events.m @@ -27,7 +27,6 @@ #include "talloc.h" #include "core/input/input.h" -#include "core/mp_fifo.h" // doesn't make much sense, but needed to access keymap functionality #include "video/out/vo.h" @@ -167,7 +166,7 @@ void cocoa_check_events(void) Application *app = mpv_shared_app(); int key; while ((key = [app.iqueue pop]) >= 0) - mplayer_put_key(app.keyFIFO, key); + mp_input_put_key(app.inputContext, key); } void cocoa_put_key(int keycode) @@ -179,6 +178,7 @@ void cocoa_put_key(int keycode) CFMachPortRef _mk_tap_port; HIDRemote *_remote; } + - (void)startAppleRemote { dispatch_async(dispatch_get_main_queue(), ^{ |