add scancode set 81h and 82h (incompleted)

need to modify the keyboard initialization
This commit is contained in:
Akamaki
2025-02-22 22:02:44 +09:00
parent c1f8944c40
commit ffedf62a4a
2 changed files with 1071 additions and 23 deletions

View File

@@ -1094,8 +1094,8 @@ pc_init_modules(void)
void void
pc_send_ca(uint16_t sc) pc_send_ca(uint16_t sc)
{ {
if (keyboard_mode == 0x8A) { if (keyboard_mode >= 0x81) {
/* Use R-Alt because PS/55 DOS assigns L-Alt Kanji */ /* Use R-Alt because PS/55 DOS and OS/2 assign L-Alt Kanji */
keyboard_input(1, 0x1D); /* Ctrl key pressed */ keyboard_input(1, 0x1D); /* Ctrl key pressed */
keyboard_input(1, 0x138); /* R-Alt key pressed */ keyboard_input(1, 0x138); /* R-Alt key pressed */
keyboard_input(1, sc); keyboard_input(1, sc);

File diff suppressed because it is too large Load Diff