diff options
author | Christoph Heinrich <christoph.heinrich@student.tugraz.at> | 2023-08-25 01:48:45 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-08-25 15:55:31 +0000 |
commit | 0c9d8619e8abbe64f203fd0b18a02d1a1b48ea37 (patch) | |
tree | a46c3e3d919a808833cc61b5e485fd6f8b492952 /video | |
parent | c0fb9b4b83905ff29f2b4c678af431561b5b53be (diff) | |
download | mpv-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')
-rw-r--r-- | video/out/wayland_common.c | 10 | ||||
-rw-r--r-- | video/out/x11_common.c | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index abd18fae28..8179436c21 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -112,11 +112,11 @@ static const struct mp_keymap keymap[] = { {XKB_KEY_KP_Decimal, MP_KEY_KPDEC}, {XKB_KEY_KP_Separator, MP_KEY_KPDEC}, /* Numpad without numlock */ - {XKB_KEY_KP_Insert, MP_KEY_KPINS}, {XKB_KEY_KP_End, MP_KEY_KP1}, - {XKB_KEY_KP_Down, MP_KEY_KP2}, {XKB_KEY_KP_Page_Down, MP_KEY_KP3}, - {XKB_KEY_KP_Left, MP_KEY_KP4}, {XKB_KEY_KP_Begin, MP_KEY_KP5}, - {XKB_KEY_KP_Right, MP_KEY_KP6}, {XKB_KEY_KP_Home, MP_KEY_KP7}, - {XKB_KEY_KP_Up, MP_KEY_KP8}, {XKB_KEY_KP_Page_Up, MP_KEY_KP9}, + {XKB_KEY_KP_Insert, MP_KEY_KPINS}, {XKB_KEY_KP_End, MP_KEY_KPEND}, + {XKB_KEY_KP_Down, MP_KEY_KPDOWN}, {XKB_KEY_KP_Page_Down, MP_KEY_KPPGDOWN}, + {XKB_KEY_KP_Left, MP_KEY_KPLEFT}, {XKB_KEY_KP_Begin, MP_KEY_KP5}, + {XKB_KEY_KP_Right, MP_KEY_KPRIGHT}, {XKB_KEY_KP_Home, MP_KEY_KPHOME}, + {XKB_KEY_KP_Up, MP_KEY_KPUP}, {XKB_KEY_KP_Page_Up, MP_KEY_KPPGUP}, {XKB_KEY_KP_Delete, MP_KEY_KPDEL}, /* Multimedia keys */ 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}, |