Proper Y direction

This commit is contained in:
Able 2024-11-05 23:01:15 -06:00
parent 879bbfa173
commit 6a319c55b0

View file

@ -71,7 +71,7 @@ main := fn(): int {
mouse_event := intouch.recieve_mouse_event() mouse_event := intouch.recieve_mouse_event()
if mouse_event != null { if mouse_event != null {
mouse_x += mouse_event.x_change mouse_x += mouse_event.x_change
mouse_y -= mouse_event.y_change mouse_y += mouse_event.y_change
} }
// render mouse // render mouse
render.put_rect(screen, .(mouse_x, mouse_y), .(20, 20), render.white) render.put_rect(screen, .(mouse_x, mouse_y), .(20, 20), render.white)