aboutsummaryrefslogtreecommitdiff
path: root/src/fw/input.odin
diff options
context:
space:
mode:
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
}