mpv/input
James Ross-Gowan 037c7a9279 w32_common: handle media keys
This was attempted before in fc9695e63b, but it was reverted in
1b7ce759b1 because it caused conflicts with other software watching
the same keys (See #2041.) It seems like some PCs ship with OEM software
that watches the volume keys without consuming key events and this
causes them to be handled twice, once by mpv and once by the other
software.

In order to prevent conflicts like this, use the WM_APPCOMMAND message
to handle media keys. Returning TRUE from the WM_APPCOMMAND handler
should indicate to the operating system that we consumed the key event
and it should not be propogated to the shell. Also, we now only listen
for keys that are directly related to multimedia playback (eg. the
APPCOMMAND_MEDIA_* keys.) Keys like APPCOMMAND_VOLUME_* are ignored, so
they can be handled by the shell, or by other mixer software.
2017-08-05 02:38:44 +10:00
..
cmd_list.c input: drop deprecated "osd" command 2017-07-21 20:02:58 +02:00
cmd_list.h input: drop deprecated "osd" command 2017-07-21 20:02:58 +02:00
cmd_parse.c input: change license to LGPL 2017-06-19 13:28:19 +02:00
cmd_parse.h input: change license to LGPL 2017-06-19 13:28:19 +02:00
event.c Use - as command-name separator everywhere 2016-07-14 22:37:42 +02:00
event.h
input.c w32_common: handle media keys 2017-08-05 02:38:44 +10:00
input.h w32_common: handle media keys 2017-08-05 02:38:44 +10:00
ipc-dummy.c build: change how some OS specific source files are selected 2017-06-29 10:30:16 +02:00
ipc-unix.c Avoid calling close(-1) 2017-06-29 10:31:13 +02:00
ipc-win.c ipc: log when listening to IPC socket 2016-09-29 16:47:19 +02:00
ipc.c ipc: raise json nesting limit 2017-05-03 20:47:11 +02:00
keycodes.c w32_common: handle media keys 2017-08-05 02:38:44 +10:00
keycodes.h w32_common: handle media keys 2017-08-05 02:38:44 +10:00
pipe-win32.c osdep: rename atomics.h to atomic.h 2016-09-07 11:26:25 +02:00