pub struct MouseState {
pub buttons: ButtonState<MouseButton>,
pub x: i32,
pub y: i32,
}Expand description
The cursor position and state of the mouse buttons.
Fields§
The state of every SDL2 supported mouse button.
x: i32X coordinate of the mouse cursor.
y: i32Y coordinate of the mouse cursor.
Auto Trait Implementations§
impl Freeze for MouseState
impl RefUnwindSafe for MouseState
impl Send for MouseState
impl Sync for MouseState
impl Unpin for MouseState
impl UnwindSafe for MouseState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more