1
0
Fork 0
forked from AbleOS/ableos

rework logic

This commit is contained in:
Able 2024-11-05 23:01:06 -06:00
parent 795f10986f
commit 879bbfa173

View file

@ -26,10 +26,7 @@ recieve_mouse_event := fn(): ?^MouseEvent {
// Read out of the Mouse buffer here // Read out of the Mouse buffer here
buffer.recv(MouseEvent, buf_id, mem_page) buffer.recv(MouseEvent, buf_id, mem_page)
if *mem_page == 0 { if *mem_page != 0 {
// log.info("Haha\0")
} else {
log.info("Mouse event recieved in horizon.\0")
dx := *mem_page dx := *mem_page
dy := *mem_page + 1 dy := *mem_page + 1
mevent := MouseEvent.(dx, dy, 0, 0, 0) mevent := MouseEvent.(dx, dy, 0, 0, 0)