summaryrefslogtreecommitdiff
path: root/hid
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-06-03 02:01:04 +0300
committerDevaev Maxim <[email protected]>2020-06-03 02:01:04 +0300
commitb6d463f8143aea7c946ae2b33cf97fe06d01a28a (patch)
treefd9ebe4b1c452f802d9fdc003ce85abaabd0814e /hid
parent54f0e1990beb18be2ee9483ba6a727a8a22a0fa6 (diff)
numpad supported
Diffstat (limited to 'hid')
-rw-r--r--hid/src/keymap.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/hid/src/keymap.h b/hid/src/keymap.h
index c66a454d..d34dd9bd 100644
--- a/hid/src/keymap.h
+++ b/hid/src/keymap.h
@@ -29,6 +29,22 @@
INLINE KeyboardKeycode keymap(uint8_t code) {
switch(code) {
+ case 103: return KEYPAD_0;
+ case 94: return KEYPAD_1;
+ case 95: return KEYPAD_2;
+ case 96: return KEYPAD_3;
+ case 97: return KEYPAD_4;
+ case 98: return KEYPAD_5;
+ case 99: return KEYPAD_6;
+ case 100: return KEYPAD_7;
+ case 101: return KEYPAD_8;
+ case 102: return KEYPAD_9;
+ case 92: return KEYPAD_ADD;
+ case 104: return KEYPAD_DECIMAL;
+ case 89: return KEYPAD_DIVIDE;
+ case 93: return KEYPAD_ENTER;
+ case 90: return KEYPAD_MULTIPLY;
+ case 91: return KEYPAD_SUBTRACT;
case 36: return KEY_0;
case 27: return KEY_1;
case 28: return KEY_2;