summaryrefslogtreecommitdiffstats
path: root/input/keycodes.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-12-23 19:13:45 +0100
committerwm4 <wm4@nowhere>2015-12-23 19:13:45 +0100
commitb0381d27eb19d8f70f4f711d41dd342c616ae843 (patch)
tree89eee7586c847ba69cd33d9d96be20ff3553646b /input/keycodes.c
parent3e1aed8f40f0c35f78c74502050630519895c972 (diff)
downloadmpv-b0381d27eb19d8f70f4f711d41dd342c616ae843.tar.bz2
mpv-b0381d27eb19d8f70f4f711d41dd342c616ae843.tar.xz
input: add a catch-all "unmapped" command
This can be used to grab all unmapped keys. Fixes #2612.
Diffstat (limited to 'input/keycodes.c')
-rw-r--r--input/keycodes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/input/keycodes.c b/input/keycodes.c
index 21a3c10e64..d6c07288c2 100644
--- a/input/keycodes.c
+++ b/input/keycodes.c
@@ -171,6 +171,8 @@ static const struct key_name key_names[] = {
{ MP_KEY_MOUSE_LEAVE, "MOUSE_LEAVE" },
{ MP_KEY_MOUSE_ENTER, "MOUSE_ENTER" },
+ { MP_KEY_UNMAPPED, "UNMAPPED" },
+
{ 0, NULL }
};