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:
parent
86ad5bf420
commit
85ab55a05b
@ -467,6 +467,7 @@ impl Window {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
#[doc(alias = "mouse position")]
|
||||||
pub fn cursor_position(&self) -> Option<Vec2> {
|
pub fn cursor_position(&self) -> Option<Vec2> {
|
||||||
self.cursor_position
|
self.cursor_position
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user