pub struct MouseOutput {
pub pressed_buttons: u8,
pub x: i8,
pub y: i8,
pub vertical_scroll: i8,
pub horizontal_scroll: i8,
}
Expand description
Struct for the mouse output.
Fields§
Bitmask of pressed buttons.
x: i8
X direction.
y: i8
Y direction.
vertical_scroll: i8
Vertical scroll.
horizontal_scroll: i8
Horizontal scroll.
Implementations§
Source§impl MouseOutput
impl MouseOutput
Sourcepub const NO_OUTPUT: MouseOutput
pub const NO_OUTPUT: MouseOutput
A mouse output with no buttons pressed and no movement.
Trait Implementations§
Source§impl Clone for MouseOutput
impl Clone for MouseOutput
Source§fn clone(&self) -> MouseOutput
fn clone(&self) -> MouseOutput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MouseOutput
impl Debug for MouseOutput
Source§impl<'de> Deserialize<'de> for MouseOutput
impl<'de> Deserialize<'de> for MouseOutput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MouseOutput
impl PartialEq for MouseOutput
Source§impl Serialize for MouseOutput
impl Serialize for MouseOutput
impl Copy for MouseOutput
impl Eq for MouseOutput
impl StructuralPartialEq for MouseOutput
Auto Trait Implementations§
impl Freeze for MouseOutput
impl RefUnwindSafe for MouseOutput
impl Send for MouseOutput
impl Sync for MouseOutput
impl Unpin for MouseOutput
impl UnwindSafe for MouseOutput
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