Proper Y direction
This commit is contained in:
parent
879bbfa173
commit
6a319c55b0
|
@ -71,7 +71,7 @@ main := fn(): int {
|
|||
mouse_event := intouch.recieve_mouse_event()
|
||||
if mouse_event != null {
|
||||
mouse_x += mouse_event.x_change
|
||||
mouse_y -= mouse_event.y_change
|
||||
mouse_y += mouse_event.y_change
|
||||
}
|
||||
// render mouse
|
||||
render.put_rect(screen, .(mouse_x, mouse_y), .(20, 20), render.white)
|
||||
|
|
Loading…
Reference in a new issue