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.
This commit is contained in:
speak 2021-04-28 21:26:47 +00:00
parent 86ad5bf420
commit 85ab55a05b

View file

@ -467,6 +467,7 @@ impl Window {
}
#[inline]
#[doc(alias = "mouse position")]
pub fn cursor_position(&self) -> Option<Vec2> {
self.cursor_position
}