pub struct MouseInfo {
pub last_mouse_pos: (usize, usize),
pub left_mouse_down: bool,
pub right_mouse_down: bool,
pub middle_mouse_down: bool,
}Expand description
Information about the current state of the mouse.
If you are interested in mouse button presses, see MousePressedInfo.
Fields§
§last_mouse_pos: (usize, usize)The last known position of the mouse.
left_mouse_down: boolIs the left mouse button currently down?
right_mouse_down: boolIs the right mouse button currently down?
middle_mouse_down: boolIs the middle mouse button currently down?
Trait Implementations§
impl Copy for MouseInfo
impl Eq for MouseInfo
impl StructuralPartialEq for MouseInfo
Auto Trait Implementations§
impl Freeze for MouseInfo
impl RefUnwindSafe for MouseInfo
impl Send for MouseInfo
impl Sync for MouseInfo
impl Unpin for MouseInfo
impl UnwindSafe for MouseInfo
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