summaryrefslogtreecommitdiff
path: root/engine/src/windowing
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-11-28 15:31:11 +0100
committerHampusM <hampus@hampusmat.com>2026-11-28 15:31:11 +0100
commitf514c4ec94a33447ab1ccb45b11346f0f0a2446d (patch)
tree26532e944199c7f817d79039c38482548ee74726 /engine/src/windowing
parent5411ac376b64c34b0e2c57b86edd859bcd196d26 (diff)
feat(engine): add cursor grab mode for confining cursor to window
Diffstat (limited to 'engine/src/windowing')
-rw-r--r--engine/src/windowing/window.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/src/windowing/window.rs b/engine/src/windowing/window.rs
index c601487..b935657 100644
--- a/engine/src/windowing/window.rs
+++ b/engine/src/windowing/window.rs
@@ -288,6 +288,9 @@ pub enum CursorGrabMode
/// The cursor is locked to a specific position in the window.
Locked,
+
+ /// The cursor is confined to the inside of the window
+ Confined,
}
/// A unique identifier for an X11 visual.