diff --git a/crates/playeragent/src/inputstatus.rs b/crates/playeragent/src/inputstatus.rs index cfa42cb..a85187f 100644 --- a/crates/playeragent/src/inputstatus.rs +++ b/crates/playeragent/src/inputstatus.rs @@ -112,6 +112,11 @@ impl InputStatus { self.v_scroll } + /// Get the current mouse position + pub fn get_mouse_pos(&self) -> PhysicalPosition { + self.mouse_position + } + /// Is the player pressing the "turn left" key? pub fn pressed_left(&self) -> bool { self.key_left