summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
Diffstat (limited to 'osdep')
-rw-r--r--osdep/macosx_events.h1
-rw-r--r--osdep/macosx_events.m5
2 files changed, 6 insertions, 0 deletions
diff --git a/osdep/macosx_events.h b/osdep/macosx_events.h
index 34d653c3de..f9008b40ec 100644
--- a/osdep/macosx_events.h
+++ b/osdep/macosx_events.h
@@ -25,6 +25,7 @@ struct input_ctx;
void cocoa_put_key(int keycode);
void cocoa_put_key_with_modifiers(int keycode, int modifiers);
+void cocoa_put_key_event(void *event);
void cocoa_start_event_monitor(void);
diff --git a/osdep/macosx_events.m b/osdep/macosx_events.m
index 71a9591134..f913b5db1a 100644
--- a/osdep/macosx_events.m
+++ b/osdep/macosx_events.m
@@ -189,6 +189,11 @@ void cocoa_put_key(int keycode)
mp_input_put_key(inputContext, keycode);
}
+void cocoa_put_key_event(void *event)
+{
+ [[EventsResponder sharedInstance] handleKey:event];
+}
+
void cocoa_put_key_with_modifiers(int keycode, int modifiers)
{
keycode |= [[EventsResponder sharedInstance] mapKeyModifiers:modifiers];