forked from AbleOS/ableos
More mouse work
This commit is contained in:
parent
92bf9207b3
commit
b7d668c83a
|
@ -39,12 +39,16 @@ main := fn(): int {
|
||||||
get_response()
|
get_response()
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
wait_for(0)
|
loop {
|
||||||
|
if (memory.inb(0x64) & 0x21) == 0x21 break
|
||||||
|
}
|
||||||
status := memory.inb(0x60)
|
status := memory.inb(0x60)
|
||||||
//log.info("NEGATIVE Y MOVEMENT\0\0")
|
//log.info("NEGATIVE Y MOVEMENT\0\0")
|
||||||
log.info(string.display_int(status, format_page))
|
log.info(string.display_int(status, format_page))
|
||||||
d_x := memory.inb(0x60)
|
d_x := memory.inb(0x60)
|
||||||
|
log.info(string.display_int(d_x, format_page))
|
||||||
d_y := memory.inb(0x60)
|
d_y := memory.inb(0x60)
|
||||||
|
log.info(string.display_int(d_y, format_page))
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in a new issue