You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Get whether or not the cursor is locked in position, confined to the window, or free to move.
588
600
///
589
601
/// ## Platform-specific
590
602
///
591
603
/// - **`macOS`** doesn't support cursor lock, but most windowing plugins can emulate it. See [issue #4875](https://github.com/bevyengine/bevy/issues/4875#issuecomment-1153977546) for more information.
592
604
/// - **`iOS/Android`** don't have cursors.
593
605
#[inline]
594
-
pubfncursor_locked(&self) -> bool{
595
-
self.cursor_locked
606
+
pubfncursor_grab_mode(&self) -> CursorGrabMode{
607
+
self.cursor_grab_mode
596
608
}
597
-
/// Set whether or not the cursor is locked.
609
+
/// Set whether or not the cursor is locked in position, confined to the window, or free to move.
598
610
///
599
611
/// This doesn't hide the cursor. For that, use [`set_cursor_visibility`](Window::set_cursor_visibility)
600
612
///
601
613
/// ## Platform-specific
602
614
///
603
615
/// - **`macOS`** doesn't support cursor lock, but most windowing plugins can emulate it. See [issue #4875](https://github.com/bevyengine/bevy/issues/4875#issuecomment-1153977546) for more information.
0 commit comments