Skip to content

Commit 85ab55a

Browse files
committed
Adds an alias mouse position -> cursor position (#2038)
This alias 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.
1 parent 86ad5bf commit 85ab55a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/bevy_window/src/window.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ impl Window {
467467
}
468468

469469
#[inline]
470+
#[doc(alias = "mouse position")]
470471
pub fn cursor_position(&self) -> Option<Vec2> {
471472
self.cursor_position
472473
}

0 commit comments

Comments
 (0)