diff options
| author | HampusM <hampus@hampusmat.com> | 2026-11-28 15:32:07 +0100 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-11-28 15:32:07 +0100 |
| commit | c416eca3cccac2c25ee395469005faca01fdb912 (patch) | |
| tree | bdf0f0e3775acc3e305bfa6ffe300ccbe426b1ac /src/main.rs | |
| parent | f514c4ec94a33447ab1ccb45b11346f0f0a2446d (diff) | |
feat: use confined cursor when ui is enabled
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 2 |
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; } |
