mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -467,6 +467,7 @@ impl Window {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
#[doc(alias = "mouse position")]
|
||||
pub fn cursor_position(&self) -> Option<Vec2> {
|
||||
self.cursor_position
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue