Added get_mouse_pos

master
Mark 2024-01-25 21:25:38 -08:00
parent f70f79e96a
commit 699e62a1c8
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
1 changed files with 5 additions and 0 deletions

View File

@ -112,6 +112,11 @@ impl InputStatus {
self.v_scroll self.v_scroll
} }
/// Get the current mouse position
pub fn get_mouse_pos(&self) -> PhysicalPosition<f32> {
self.mouse_position
}
/// Is the player pressing the "turn left" key? /// Is the player pressing the "turn left" key?
pub fn pressed_left(&self) -> bool { pub fn pressed_left(&self) -> bool {
self.key_left self.key_left