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. --- core/mplayer.c | 1 + 1 file changed, 1 insertion(+) (limited to 'core/mplayer.c') diff --git a/core/mplayer.c b/core/mplayer.c index 52aa34058c..89e79ef044 100644 --- a/core/mplayer.c +++ b/core/mplayer.c @@ -3999,6 +3999,7 @@ static void init_input(struct MPContext *mpctx) #ifdef CONFIG_COCOA cocoa_set_input_context(mpctx->input); + cocoa_set_key_fifo(mpctx->key_fifo); #endif } -- cgit v1.2.3