diff --git a/sysdata/programs/mouse_driver/src/main.hb b/sysdata/programs/mouse_driver/src/main.hb index c07c3c8..571aba0 100644 --- a/sysdata/programs/mouse_driver/src/main.hb +++ b/sysdata/programs/mouse_driver/src/main.hb @@ -99,7 +99,12 @@ main := fn(): int { set_up_mouse() loop { - loop if (memory.inb(0x64) & 0x20) == 0x20 break + info := memory.inb(0x64) + if (info & 1) == 0 continue + if (info & 0x20) != 0x20 { + _ := memory.inb(0x60) + continue + } status := memory.inb(0x60) if status == 0xAA {