summaryrefslogtreecommitdiffstats
path: root/osdep
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 /osdep
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 'osdep')
-rw-r--r--osdep/w32_keyboard.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/osdep/w32_keyboard.c b/osdep/w32_keyboard.c
index 86061b8066..a25c6962d2 100644
--- a/osdep/w32_keyboard.c
+++ b/osdep/w32_keyboard.c
@@ -65,10 +65,10 @@ static const struct keymap vk_map[] = {
{VK_DECIMAL, MP_KEY_KPDEC},
// numpad without numlock
- {VK_INSERT, MP_KEY_KPINS}, {VK_END, MP_KEY_KP1}, {VK_DOWN, MP_KEY_KP2},
- {VK_NEXT, MP_KEY_KP3}, {VK_LEFT, MP_KEY_KP4}, {VK_CLEAR, MP_KEY_KP5},
- {VK_RIGHT, MP_KEY_KP6}, {VK_HOME, MP_KEY_KP7}, {VK_UP, MP_KEY_KP8},
- {VK_PRIOR, MP_KEY_KP9}, {VK_DELETE, MP_KEY_KPDEL},
+ {VK_INSERT, MP_KEY_KPINS}, {VK_END, MP_KEY_KPEND}, {VK_DOWN, MP_KEY_KPDOWN},
+ {VK_NEXT, MP_KEY_KPPGDOWN}, {VK_LEFT, MP_KEY_KPLEFT}, {VK_CLEAR, MP_KEY_KP5},
+ {VK_RIGHT, MP_KEY_KPRIGHT}, {VK_HOME, MP_KEY_KPHOME}, {VK_UP, MP_KEY_KPUP},
+ {VK_PRIOR, MP_KEY_KPPGUP}, {VK_DELETE, MP_KEY_KPDEL},
{0, 0}
};