summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.c
diff options
context:
space:
mode:
authorChristoph Heinrich <christoph.heinrich@student.tugraz.at>2023-08-25 01:48:45 +0200
committerDudemanguy <random342@airmail.cc>2023-08-25 15:55:31 +0000
commit0c9d8619e8abbe64f203fd0b18a02d1a1b48ea37 (patch)
treea46c3e3d919a808833cc61b5e485fd6f8b492952 /video/out/x11_common.c
parentc0fb9b4b83905ff29f2b4c678af431561b5b53be (diff)
downloadmpv-0c9d8619e8abbe64f203fd0b18a02d1a1b48ea37.tar.bz2
mpv-0c9d8619e8abbe64f203fd0b18a02d1a1b48ea37.tar.xz
input: add missing keypad key defines
So far all the keypad keys except for `0` and `,` mapped to the same MP_KEY_* independent of numlock state, even though different key codes are received. Now all the alternative functions map to appropriate MP_KEY_* defines, with missing ones added.
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r--video/out/x11_common.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index 3eaad12470..3c0f275370 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -736,11 +736,11 @@ static const struct mp_keymap keymap[] = {
{XK_KP_Separator, MP_KEY_KPDEC},
// numpad without numlock
- {XK_KP_Insert, MP_KEY_KPINS}, {XK_KP_End, MP_KEY_KP1},
- {XK_KP_Down, MP_KEY_KP2}, {XK_KP_Page_Down, MP_KEY_KP3},
- {XK_KP_Left, MP_KEY_KP4}, {XK_KP_Begin, MP_KEY_KP5},
- {XK_KP_Right, MP_KEY_KP6}, {XK_KP_Home, MP_KEY_KP7}, {XK_KP_Up, MP_KEY_KP8},
- {XK_KP_Page_Up, MP_KEY_KP9}, {XK_KP_Delete, MP_KEY_KPDEL},
+ {XK_KP_Insert, MP_KEY_KPINS}, {XK_KP_End, MP_KEY_KPEND},
+ {XK_KP_Down, MP_KEY_KPDOWN}, {XK_KP_Page_Down, MP_KEY_KPPGDOWN},
+ {XK_KP_Left, MP_KEY_KPLEFT}, {XK_KP_Begin, MP_KEY_KP5},
+ {XK_KP_Right, MP_KEY_KPRIGHT}, {XK_KP_Home, MP_KEY_KPHOME}, {XK_KP_Up, MP_KEY_KPUP},
+ {XK_KP_Page_Up, MP_KEY_KPPGUP}, {XK_KP_Delete, MP_KEY_KPDEL},
{XF86XK_MenuKB, MP_KEY_MENU},
{XF86XK_AudioPlay, MP_KEY_PLAY}, {XF86XK_AudioPause, MP_KEY_PAUSE},