From 8c053be5bf59265e82419d14c079e34f3d82e881 Mon Sep 17 00:00:00 2001 From: Jesse Viikari Date: Wed, 28 Apr 2021 23:15:26 +0300 Subject: [PATCH] Adds an alias mouse position -> cursor position This is to aid people finding the cursor_position function, as the mouse pressed / moved functionality and naming likely primes people for thinking of "mouse" before "cursor" when searching the api documentation. --- crates/bevy_window/src/window.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/bevy_window/src/window.rs b/crates/bevy_window/src/window.rs index fd4277780457e..be3a6c0f99230 100644 --- a/crates/bevy_window/src/window.rs +++ b/crates/bevy_window/src/window.rs @@ -467,6 +467,7 @@ impl Window { } #[inline] + #[doc(alias = "mouse position")] pub fn cursor_position(&self) -> Option { self.cursor_position }