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 /video/out/x11_common.c | |
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 'video/out/x11_common.c')
-rw-r--r-- | video/out/x11_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c index f63e1f02cd..3eaad12470 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -753,6 +753,8 @@ static const struct mp_keymap keymap[] = { {XF86XK_HomePage, MP_KEY_HOMEPAGE}, {XF86XK_WWW, MP_KEY_WWW}, {XF86XK_Mail, MP_KEY_MAIL}, {XF86XK_Favorites, MP_KEY_FAVORITES}, {XF86XK_Search, MP_KEY_SEARCH}, {XF86XK_Sleep, MP_KEY_SLEEP}, + {XF86XK_Back, MP_KEY_BACK}, {XF86XK_Tools, MP_KEY_TOOLS}, + {XF86XK_ZoomIn, MP_KEY_ZOOMIN}, {XF86XK_ZoomOut, MP_KEY_ZOOMOUT}, {0, 0} }; |