pub struct MouseState {
pub prev_on_screen: bool,
pub on_screen: bool,
pub prev_x: f32,
pub prev_y: f32,
pub pos_x: f32,
pub pos_y: f32,
/* private fields */
}
Expand description
The type that holds the state of the Mouse.
Fields§
§prev_on_screen: bool
§on_screen: bool
§prev_x: f32
§prev_y: f32
§pos_x: f32
§pos_y: f32
Implementations§
Source§impl MouseState
impl MouseState
Returns true if the MouseButton was just pressed.
Returns true every frame the MouseButton is pressed. This includes the frame the MouseButton was just pressed.
Returns true if the MouseButton was just released.
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