From b0381d27eb19d8f70f4f711d41dd342c616ae843 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 23 Dec 2015 19:13:45 +0100 Subject: input: add a catch-all "unmapped" command This can be used to grab all unmapped keys. Fixes #2612. --- input/keycodes.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'input/keycodes.h') diff --git a/input/keycodes.h b/input/keycodes.h index d95edb1f45..da88d52c37 100644 --- a/input/keycodes.h +++ b/input/keycodes.h @@ -200,6 +200,9 @@ #define MP_KEY_IS_MOUSE(code) \ (MP_KEY_IS_MOUSE_CLICK(code) || MP_KEY_IS_MOUSE_MOVE(code)) +// No input source should generate this. +#define MP_KEY_UNMAPPED (MP_KEY_INTERN+4) + // Emit a command even on key-up (normally key-up is ignored). This means by // default they binding will be triggered on key-up instead of key-down. // This is a fixed part of the keycode, not a modifier than can change. -- cgit v1.2.3