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