#[repr(C)]pub struct MouseInput {
pub x: i16,
pub y: i16,
pub scroll_x: i8,
pub scroll_y: i8,
pub left: bool,
pub middle: bool,
pub right: bool,
}
Fields§
§x: i16
§y: i16
§scroll_x: i8
§scroll_y: i8
§left: bool
§middle: bool
§right: bool
Trait Implementations§
Source§impl Default for MouseInput
impl Default for MouseInput
Source§fn default() -> MouseInput
fn default() -> MouseInput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MouseInput
impl RefUnwindSafe for MouseInput
impl Send for MouseInput
impl Sync for MouseInput
impl Unpin for MouseInput
impl UnwindSafe for MouseInput
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