summaryrefslogtreecommitdiffstats
path: root/input/keycodes.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 /input/keycodes.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 'input/keycodes.c')
-rw-r--r--input/keycodes.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/input/keycodes.c b/input/keycodes.c
index 7fb1237965..bca9e17c14 100644
--- a/input/keycodes.c
+++ b/input/keycodes.c
@@ -89,6 +89,14 @@ static const struct key_name key_names[] = {
{ MP_KEY_KPDEL, "KP_DEL" },
{ MP_KEY_KPDEC, "KP_DEC" },
{ MP_KEY_KPINS, "KP_INS" },
+ { MP_KEY_KPHOME, "KP_HOME" },
+ { MP_KEY_KPEND, "KP_END" },
+ { MP_KEY_KPPGUP, "KP_PGUP" },
+ { MP_KEY_KPPGDOWN, "KP_PGDWN" },
+ { MP_KEY_KPRIGHT, "KP_RIGHT" },
+ { MP_KEY_KPLEFT, "KP_LEFT" },
+ { MP_KEY_KPDOWN, "KP_DOWN" },
+ { MP_KEY_KPUP, "KP_UP" },
{ MP_KEY_KPENTER, "KP_ENTER" },
{ MP_MBTN_LEFT, "MBTN_LEFT" },
{ MP_MBTN_MID, "MBTN_MID" },