aboutsummaryrefslogtreecommitdiff
path: root/src/input.odin
diff options
context:
space:
mode:
authoriamcheeseman <[hidden email]>2026-01-15 16:17:16 -0500
committeriamcheeseman <[hidden email]>2026-01-15 16:17:16 -0500
commit86738d3406671046ce50a2d1b07d858e14b2f968 (patch)
tree3261e9fb85d7a438a6d5e37df447e209e3b26532 /src/input.odin
parent4563dfa077e029fbefd192f087338d186155ebfc (diff)
Ensure upwards and downwards transitions work
Diffstat (limited to 'src/input.odin')
-rw-r--r--src/input.odin1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input.odin b/src/input.odin
index 1513c33..7ba2884 100644
--- a/src/input.odin
+++ b/src/input.odin
@@ -59,5 +59,6 @@ get_mouse_pos :: proc() -> (mouse_pos: Vec2) {
mouse_pos = Vec2{f32(rl.GetMouseX()), f32(rl.GetMouseY())}
mouse_pos /= Vec2{f32(rl.GetScreenWidth()), f32(rl.GetScreenHeight())}
mouse_pos *= SCREEN_SIZE
+ mouse_pos += state.camera.target
return
}