summaryrefslogtreecommitdiff
path: root/hid
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-07-03 09:58:09 +0300
committerDevaev Maxim <[email protected]>2021-07-03 09:58:09 +0300
commit671627b768864e1c1b7396d9607ad4acfe87a32c (patch)
tree7e9ff186dd875bb96958b5b20231f0e10d194a80 /hid
parent3bcaca0cb8a07d704391a3905ea99eee01a71f9d (diff)
pikvm/pikvm#373: added yen key
Diffstat (limited to 'hid')
-rw-r--r--hid/src/ps2/keymap.h1
-rw-r--r--hid/src/usb/keymap.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/hid/src/ps2/keymap.h b/hid/src/ps2/keymap.h
index 9307e9e0..f45d6eb9 100644
--- a/hid/src/ps2/keymap.h
+++ b/hid/src/ps2/keymap.h
@@ -143,5 +143,6 @@ void keymapPs2(uint8_t code, Ps2KeyType *ps2_type, uint8_t *ps2_code) {
case 104: *ps2_type = PS2_KEY_TYPE_REG; *ps2_code = 113; return; // KEYPAD_DOT
case 105: *ps2_type = PS2_KEY_TYPE_SPEC; *ps2_code = 94; return; // KEY_POWER
case 106: *ps2_type = PS2_KEY_TYPE_REG; *ps2_code = 97; return; // KEY_NON_US
+ case 107: *ps2_type = PS2_KEY_TYPE_REG; *ps2_code = 106; return; // KEY_INTERNATIONAL3
}
}
diff --git a/hid/src/usb/keymap.h b/hid/src/usb/keymap.h
index 1ce4ce90..d1954d3a 100644
--- a/hid/src/usb/keymap.h
+++ b/hid/src/usb/keymap.h
@@ -133,6 +133,7 @@ KeyboardKeycode keymapUsb(uint8_t code) {
case 104: return KEYPAD_DOT;
case 105: return KEY_POWER;
case 106: return KEY_NON_US;
+ case 107: return KEY_INTERNATIONAL3;
default: return KEY_ERROR_UNDEFINED;
}
}