rework logic
This commit is contained in:
parent
795f10986f
commit
879bbfa173
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue