pub struct MouseState {
pub x: f32,
pub y: f32,
pub dx: f32,
pub dy: f32,
pub scroll_x: f32,
pub scroll_y: f32,
pub pressure: f32,
pub left: bool,
pub middle: bool,
pub right: bool,
}Expand description
Per-frame pointer-state snapshot.
Donor: oa::input::MouseState.
Fields§
§x: f32§y: f32§dx: f32§dy: f32§scroll_x: f32§scroll_y: f32§pressure: f32§left: bool§middle: bool§right: boolTrait Implementations§
Source§impl Clone for MouseState
impl Clone for MouseState
Source§impl Debug for MouseState
impl Debug for MouseState
Auto Trait Implementations§
impl Forget for MouseState
impl Freeze for MouseState
impl Move for MouseState
impl RefUnwindSafe for MouseState
impl Send for MouseState
impl Sync for MouseState
impl Unpin for MouseState
impl UnsafeUnpin 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