diff options
author | Maxim Devaev <[email protected]> | 2022-12-10 18:19:36 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-12-10 18:19:36 +0300 |
commit | d683149b38742dba05fa7d33e2e76f8e4c64d7a6 (patch) | |
tree | b48e8aac3360909a602b92e116117b36451e5559 /hid | |
parent | 392b8c3f9e76213cafa92e1e1b3c1b20cafd1834 (diff) |
pikvm/pikvm#878: Added Japanese keys
Diffstat (limited to 'hid')
-rw-r--r-- | hid/lib/drivers-avr/ps2/keymap.h | 4 | ||||
-rw-r--r-- | hid/lib/drivers/usb-keymap.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/hid/lib/drivers-avr/ps2/keymap.h b/hid/lib/drivers-avr/ps2/keymap.h index 8f407bb5..7d10953c 100644 --- a/hid/lib/drivers-avr/ps2/keymap.h +++ b/hid/lib/drivers-avr/ps2/keymap.h @@ -144,5 +144,9 @@ void keymapPs2(uint8_t code, Ps2KeyType *ps2_type, uint8_t *ps2_code) { case 105: *ps2_type = PS2_KEY_TYPE_SPEC; *ps2_code = 94; return; // Power case 106: *ps2_type = PS2_KEY_TYPE_REG; *ps2_code = 97; return; // IntlBackslash case 107: *ps2_type = PS2_KEY_TYPE_REG; *ps2_code = 106; return; // IntlYen + case 108: *ps2_type = PS2_KEY_TYPE_REG; *ps2_code = 81; return; // IntlRo + case 109: *ps2_type = PS2_KEY_TYPE_REG; *ps2_code = 19; return; // KanaMode + case 110: *ps2_type = PS2_KEY_TYPE_REG; *ps2_code = 100; return; // Convert + case 111: *ps2_type = PS2_KEY_TYPE_REG; *ps2_code = 103; return; // NonConvert } } diff --git a/hid/lib/drivers/usb-keymap.h b/hid/lib/drivers/usb-keymap.h index a63598cf..8371b04e 100644 --- a/hid/lib/drivers/usb-keymap.h +++ b/hid/lib/drivers/usb-keymap.h @@ -132,6 +132,10 @@ uint8_t keymapUsb(uint8_t code) { case 105: return 102; // Power case 106: return 100; // IntlBackslash case 107: return 137; // IntlYen + case 108: return 135; // IntlRo + case 109: return 136; // KanaMode + case 110: return 138; // Convert + case 111: return 139; // NonConvert default: return 0; } } |