0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/osdep
Stefano Pigozzi 213ad5d6c4 osx: improve Media Keys support
This commit addresses some issues with the users had with the previous
implementation in commit c39efb9. Here's the changes:

  * Use Quartz Event Taps to remove Media Key events mpv handles from
    the global OS X queue. This prevents conflicts with iTunes. I did this on
    the main thread since it is mostly idling. It's the playloop thread that
    actually does all the work so there is no danger of blocking the event tap
    callback.
  * Introduce `--no-media-keys` switch so that users can disable all of mpv's
    media key handling at runtime (some prefer iTunes for example).
  * Use mpv's bindings so that users can customize what the media keys do via
    input.conf. Current bindings are:

      MK_PLAY cycle pause
      MK_PREV playlist_prev
      MK_NEXT playlist_next

An additional benefit of this implementation is that it is completly handled
by the `macosx_events` file instead of `macosx_application` making the
project organization more straightforward.
2013-06-04 23:02:23 +02:00
..
ar osx: add Apple Remote support 2013-06-03 22:35:47 +02:00
getch2-win.c Prefix keycode defines with MP_ 2013-02-12 10:27:00 +01:00
getch2.c mp_msg: fix status output disappearing when redirecting INPUT. 2013-03-18 20:33:29 +01:00
getch2.h mp_msg, getch2: unix tty background support 2013-01-23 18:05:34 +01:00
glob-win.c osdep:/glob-win.c: reformat 2012-08-03 01:31:32 +02:00
glob.h Add standard license headers to files. 2009-03-01 13:13:25 +00:00
io.c windows support: fix _wstat misusage 2013-01-13 17:32:39 +01:00
io.h windows support: fix _wstat misusage 2013-01-13 17:32:39 +01:00
macosx_application_objc.h osx: improve Media Keys support 2013-06-04 23:02:23 +02:00
macosx_application.h osx: create macosx_events to deal with keyDown events 2013-06-03 22:31:13 +02:00
macosx_application.m osx: improve Media Keys support 2013-06-04 23:02:23 +02:00
macosx_bundle.h path: add mp_find_config_file and reorganize some of the code 2012-12-15 17:38:00 +01:00
macosx_bundle.m path: add mp_find_config_file and reorganize some of the code 2012-12-15 17:38:00 +01:00
macosx_events.h osx: improve Media Keys support 2013-06-04 23:02:23 +02:00
macosx_events.m osx: improve Media Keys support 2013-06-04 23:02:23 +02:00
mmap_anon.c #include corresponding .h files in .c files. 2010-02-16 15:03:03 +00:00
mmap_anon.h Add standard license headers to files. 2009-03-01 13:13:25 +00:00
mmap.h Add missing header #includes to fix 'make checkheaders'. 2008-03-07 20:38:21 +00:00
mpv.exe.manifest build: fix compilation on Windows (manifest files) 2012-10-20 20:03:13 +02:00
mpv.rc Update copyright year 2013-01-04 15:23:23 +01:00
numcores.c vd_ffmpeg: set thread count to number of cores on machine by default 2010-12-20 05:53:28 +02:00
numcores.h vd_ffmpeg: set thread count to number of cores on machine by default 2010-12-20 05:53:28 +02:00
priority.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
priority.h cosmetics: Remove pointless empty lines at EOF. 2010-02-20 21:02:49 +00:00
shmem.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
shmem.h cache2: allow cache sizes up to 4 TB 2012-08-03 01:52:40 +02:00
timer-darwin.c timer: refactor, add 64 bit timer function 2013-05-26 16:44:20 +02:00
timer-linux.c timer: refactor, add 64 bit timer function 2013-05-26 16:44:20 +02:00
timer-win2.c timer: use gettimeofday() on Windows 2013-05-26 16:44:20 +02:00
timer.c Replace calls to usec_sleep() 2013-05-26 16:44:20 +02:00
timer.h Replace calls to usec_sleep() 2013-05-26 16:44:20 +02:00