Update documentation regarding set_cursor_position (#3521)

This commit is contained in:
Friz64
2024-02-24 23:15:38 +01:00
committed by GitHub
parent 97cfdd4b09
commit 990bbf178f

View File

@@ -1353,7 +1353,8 @@ impl Window {
///
/// ## Platform-specific
///
/// - **iOS / Android / Web / Wayland / Orbital:** Always returns an [`ExternalError::NotSupported`].
/// - **Wayland**: Cursor must be in [`CursorGrabMode::Locked`].
/// - **iOS / Android / Web / Orbital:** Always returns an [`ExternalError::NotSupported`].
#[inline]
pub fn set_cursor_position<P: Into<Position>>(&self, position: P) -> Result<(), ExternalError> {
let position = position.into();
@@ -1361,7 +1362,7 @@ impl Window {
.maybe_wait_on_main(|w| w.set_cursor_position(position))
}
/// Set grabbing [mode]([`CursorGrabMode`]) on the cursor preventing it from leaving the window.
/// Set grabbing [mode](CursorGrabMode) on the cursor preventing it from leaving the window.
///
/// # Example
///