summaryrefslogtreecommitdiffstats
path: root/mpvcore/input/input.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-01 19:59:38 +0200
committerwm4 <wm4@nowhere>2013-09-01 20:17:51 +0200
commit61ba8107525308b17e9c4bfdee976509116161a1 (patch)
treef7606c878b9a7891a5cfbff1c36fdd32fd77efe2 /mpvcore/input/input.c
parente366c1a9c69c606b8b671a099657fb3e27e4f83e (diff)
downloadmpv-61ba8107525308b17e9c4bfdee976509116161a1.tar.bz2
mpv-61ba8107525308b17e9c4bfdee976509116161a1.tar.xz
input: add some more X11 multimedia/internet keys
These keys can be found on various "multimedia" and "internet" keyboard. X defines many keycodes, so I'm not adding all, just what I found on my own keyboard. Other key codes can be added on request.
Diffstat (limited to 'mpvcore/input/input.c')
-rw-r--r--mpvcore/input/input.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mpvcore/input/input.c b/mpvcore/input/input.c
index b89b6eecf2..80fc1f1e58 100644
--- a/mpvcore/input/input.c
+++ b/mpvcore/input/input.c
@@ -451,6 +451,12 @@ static const struct key_name key_names[] = {
{ MP_KEY_VOLUME_UP, "VOLUME_UP" },
{ MP_KEY_VOLUME_DOWN, "VOLUME_DOWN" },
{ MP_KEY_MUTE, "MUTE" },
+ { MP_KEY_HOMEPAGE, "HOMEPAGE" },
+ { MP_KEY_WWW, "WWW" },
+ { MP_KEY_MAIL, "MAIL" },
+ { MP_KEY_FAVORITES, "FAVORITES" },
+ { MP_KEY_SEARCH, "SEARCH" },
+ { MP_KEY_SLEEP, "SLEEP" },
// These are kept for backward compatibility
{ MP_KEY_PAUSE, "XF86_PAUSE" },