diff options
author | wm4 <wm4@nowhere> | 2015-02-13 21:42:39 +0100 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-02-16 18:12:04 +0900 |
commit | db218a8d25fd2fa161b9072e5534c917ce2398ff (patch) | |
tree | 2ce4b6e7c83c663c1aaedbd544f4f482861aa8ce /input/keycodes.h | |
parent | e3064c3cb79284bba9c45a807cadce745c2e8357 (diff) | |
download | mpv-db218a8d25fd2fa161b9072e5534c917ce2398ff.tar.bz2 mpv-db218a8d25fd2fa161b9072e5534c917ce2398ff.tar.xz |
x11: make all XF86 special keys mappable
Makes all keys documented in XF86keysym.h mappable. This requires the
user to deal with numeric keycodes; no names are queried or exported.
This is an easy way to avoid adding all the hundreds of XF86 keys to
our X11 lookup table and mpv's keycode/name list.
(cherry picked from commit 417869f845d34596d8651fd9c38e6c74d56fecee)
Diffstat (limited to 'input/keycodes.h')
-rw-r--r-- | input/keycodes.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/input/keycodes.h b/input/keycodes.h index 53fb682e46..1326df6902 100644 --- a/input/keycodes.h +++ b/input/keycodes.h @@ -210,8 +210,13 @@ #define MP_AXIS_LEFT (MP_AXIS_BASE+2) #define MP_AXIS_RIGHT (MP_AXIS_BASE+3) +// Reserved area. Can be used for keys that have no explicit names assigned, +// but should be mappable by the user anyway. +#define MP_KEY_UNKNOWN_RESERVED_START (MP_KEY_BASE+0x10000) +#define MP_KEY_UNKNOWN_RESERVED_LAST (MP_KEY_BASE+0x20000-1) + /* Special keys */ -#define MP_KEY_INTERN (MP_KEY_BASE+0x1000) +#define MP_KEY_INTERN (MP_KEY_BASE+0x20000) #define MP_KEY_CLOSE_WIN (MP_KEY_INTERN+0) // Generated by input.c (VOs use mp_input_set_mouse_pos()) #define MP_KEY_MOUSE_MOVE ((MP_KEY_INTERN+1)|MP_NO_REPEAT_KEY) |