forked from AbleOS/ableos
Mouse driver is good now!
This commit is contained in:
parent
d154c9fab1
commit
2b13242f7f
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue