1 2 3 4 5 6 7 8 9 10 11 12
/// Struct that represents the current mouse position. #[derive(Clone, Debug)] pub struct MousePosition { pub x: f32, pub y: f32, } impl Default for MousePosition { fn default() -> Self { return Self { x: 0.0, y: 0.0 }; } }