Some minor keyboard and keyboard controller fixes and three-phased the keyboard and PS/2 mouse BAT.

This commit is contained in:
OBattler
2023-05-16 00:20:09 +02:00
parent db568b8658
commit 194918b86a
6 changed files with 64 additions and 35 deletions

View File

@@ -90,14 +90,18 @@ key_process(uint16_t scan, int down)
scancode *codes = scan_table;
int c;
if (!codes)
return;
if (!keyboard_scan || (keyboard_send == NULL))
return;
oldkey[scan] = down;
if (down && codes[scan].mk[0] == 0)
if (down && (codes[scan].mk[0] == 0))
return;
if (!down && codes[scan].brk[0] == 0)
if (!down && (codes[scan].brk[0] == 0))
return;
/* TODO: The keyboard controller needs to report the AT flag to us here. */