From f13f0db33a18040e660b6ed76ad43d1870f096a2 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 2 Jun 2013 17:39:05 +0200 Subject: osx: create macosx_events to deal with keyDown events On OSX with Cocoa enabled keyDown events are now handled with addLocalMonitorForEventsMatchingMask:handler:. This allows to respond to events even when there is no VO initialized but the GUI is focused. --- osdep/macosx_application.h | 1 + 1 file changed, 1 insertion(+) (limited to 'osdep/macosx_application.h') diff --git a/osdep/macosx_application.h b/osdep/macosx_application.h index 372a57a566..0334771892 100644 --- a/osdep/macosx_application.h +++ b/osdep/macosx_application.h @@ -48,6 +48,7 @@ void cocoa_stop_runloop(void); void cocoa_post_fake_event(void); void cocoa_set_input_context(struct input_ctx *input_context); +void cocoa_set_key_fifo(struct mp_fifo *key_fifo); void macosx_finder_args_preinit(int *argc, char ***argv); -- cgit v1.2.3