1
0
Fork 0
forked from AbleOS/ableos

More mouse work

This commit is contained in:
peony 2024-10-20 14:46:25 +02:00
parent 92bf9207b3
commit b7d668c83a

View file

@ -39,12 +39,16 @@ main := fn(): int {
get_response()
loop {
wait_for(0)
loop {
if (memory.inb(0x64) & 0x21) == 0x21 break
}
status := memory.inb(0x60)
//log.info("NEGATIVE Y MOVEMENT\0\0")
log.info(string.display_int(status, format_page))
d_x := memory.inb(0x60)
log.info(string.display_int(d_x, format_page))
d_y := memory.inb(0x60)
log.info(string.display_int(d_y, format_page))
}
return 0