1
0
Fork 0
forked from AbleOS/ableos

Mouse driver is good now!

This commit is contained in:
peony 2024-11-04 00:43:29 +01:00
parent d154c9fab1
commit 2b13242f7f

View file

@ -99,7 +99,12 @@ main := fn(): int {
set_up_mouse() set_up_mouse()
loop { 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) status := memory.inb(0x60)
if status == 0xAA { if status == 0xAA {