diff options
author | James Cuzella <james.cuzella@lyraphase.com> | 2023-08-15 05:27:03 -0600 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-08-23 15:37:02 +0200 |
commit | fa378249dd79296d7b10542a7545d05d4b6d0844 (patch) | |
tree | 1c21a537563c4ceb4cb8586691a8b106d6c703f5 /input/keycodes.h | |
parent | af9b53f3a3831531504906882efce0d979506ed3 (diff) | |
download | mpv-fa378249dd79296d7b10542a7545d05d4b6d0844.tar.bz2 mpv-fa378249dd79296d7b10542a7545d05d4b6d0844.tar.xz |
input: add new keys: Back, Tools, ZoomIn, ZoomOut
These were the only keys missing to support mapping all keycodes on a
[popular RF Remote][1] used with Linux HTPC apps.
Note that X11/XWayland + xkbcomp still warns about keycodes > 255, due
to the 8-bit limit in Xorg but `mpv` on Wayland is able to handle these.
For X11 users, there are [a couple options][2]:
- [Gianni Ceccarelli's patched `xf86-input-evdev`][3]
- [Use udev hwdb to map scancodes to keycodes][4]
[1]: https://www.mythtv.org/wiki/Air_mouse_rf_remote
[2]: https://unix.stackexchange.com/a/436233/7688
[3]: https://www.thenautilus.net/SW/xf86-input-evdev/
[4]: https://wiki.archlinux.org/title/Map_scancodes_to_keycodes
Diffstat (limited to 'input/keycodes.h')
-rw-r--r-- | input/keycodes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/input/keycodes.h b/input/keycodes.h index 6373a6e21a..e84cc92737 100644 --- a/input/keycodes.h +++ b/input/keycodes.h @@ -82,6 +82,10 @@ #define MP_KEY_CHANNEL_DOWN (MP_KEY_MM_BASE+22) #define MP_KEY_PLAYONLY (MP_KEY_MM_BASE+23) #define MP_KEY_PAUSEONLY (MP_KEY_MM_BASE+24) +#define MP_KEY_BACK (MP_KEY_MM_BASE+25) +#define MP_KEY_TOOLS (MP_KEY_MM_BASE+26) +#define MP_KEY_ZOOMIN (MP_KEY_MM_BASE+27) +#define MP_KEY_ZOOMOUT (MP_KEY_MM_BASE+28) /* Function keys */ #define MP_KEY_F (MP_KEY_BASE+0x40) |