aboutsummaryrefslogtreecommitdiff
path: root/src/fw/input.odin
diff options
context:
space:
mode:
authoriamcheeseman <[hidden email]>2026-02-06 22:24:12 -0500
committeriamcheeseman <[hidden email]>2026-02-06 22:24:12 -0500
commitffd24338b945ea2adf8a3c9ce217407da980b3a0 (patch)
treefb64156b7c93906dbe469c7fcc600024fc3cf5bd /src/fw/input.odin
parent308d390ed3f34d99b4e559a7b832211fb20c46ec (diff)
Fix many a issue
Diffstat (limited to 'src/fw/input.odin')
-rw-r--r--src/fw/input.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fw/input.odin b/src/fw/input.odin
index a3cbe25..2c15017 100644
--- a/src/fw/input.odin
+++ b/src/fw/input.odin
@@ -68,9 +68,9 @@ get_mouse_pos :: proc() -> (mouse_pos: Vec2) {
w_width, w_height := glfw.GetWindowSize(window)
mx, my := glfw.GetCursorPos(window)
- mouse_pos = Vec2{f32(mx), f32(mx)}
+ mouse_pos = Vec2{f32(mx), f32(my)}
mouse_pos /= Vec2{f32(w_width), f32(w_height)}
mouse_pos *= Vec2{f32(framebuf.color.size.x), f32(framebuf.color.size.y)}
- // mouse_pos += state.camera.target
+ mouse_pos += renderer.camera_pos
return
}