Added get_mouse_pos
parent
f70f79e96a
commit
699e62a1c8
|
@ -112,6 +112,11 @@ impl InputStatus {
|
|||
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?
|
||||
pub fn pressed_left(&self) -> bool {
|
||||
self.key_left
|
||||
|
|
Loading…
Reference in New Issue