summaryrefslogtreecommitdiffstats
path: root/input/keycodes.h
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.h
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.h')
-rw-r--r--input/keycodes.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/input/keycodes.h b/input/keycodes.h
index e84cc92737..a5a746aab7 100644
--- a/input/keycodes.h
+++ b/input/keycodes.h
@@ -106,6 +106,14 @@
#define MP_KEY_KPINS (MP_KEY_KEYPAD+11)
#define MP_KEY_KPDEL (MP_KEY_KEYPAD+12)
#define MP_KEY_KPENTER (MP_KEY_KEYPAD+13)
+#define MP_KEY_KPHOME (MP_KEY_KEYPAD+14)
+#define MP_KEY_KPEND (MP_KEY_KEYPAD+15)
+#define MP_KEY_KPPGUP (MP_KEY_KEYPAD+16)
+#define MP_KEY_KPPGDOWN (MP_KEY_KEYPAD+17)
+#define MP_KEY_KPRIGHT (MP_KEY_KEYPAD+18)
+#define MP_KEY_KPLEFT (MP_KEY_KEYPAD+19)
+#define MP_KEY_KPDOWN (MP_KEY_KEYPAD+20)
+#define MP_KEY_KPUP (MP_KEY_KEYPAD+21)
// Mouse events from VOs
#define MP_MBTN_BASE ((MP_KEY_BASE+0xA0)|MP_NO_REPEAT_KEY|MP_KEY_EMIT_ON_UP)