summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-11-28 15:32:07 +0100
committerHampusM <hampus@hampusmat.com>2026-11-28 15:32:07 +0100
commitc416eca3cccac2c25ee395469005faca01fdb912 (patch)
treebdf0f0e3775acc3e305bfa6ffe300ccbe426b1ac /src
parentf514c4ec94a33447ab1ccb45b11346f0f0a2446d (diff)
feat: use confined cursor when ui is enabled
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 6edc1e7..eb61ded 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -287,7 +287,7 @@ fn toggle_ui(
} else {
dear_imgui_context.enabled = true;
window.cursor_visible = true;
- window.cursor_grab_mode = WindowCursorGrabMode::None;
+ window.cursor_grab_mode = WindowCursorGrabMode::Confined;
controllable_camera.control_enabled = false;
}