Enum kiibohd_usb::MouseState
source · pub enum MouseState {
Press(u8),
Release(u8),
Position {
x: i16,
y: i16,
},
VertWheel(i8),
HorzWheel(i8),
Clear,
Unknown,
}Variants§
Press(u8)
Press the given mouse button (1->8)
Release(u8)
Release the given mouse button (1->8)
Position
Position update
VertWheel(i8)
Vertical Wheel Increment
HorzWheel(i8)
Horizontal Wheel Increment
Clear
Clear all mouse state
Unknown
Unknown state, used for errors
Trait Implementations§
source§impl Clone for MouseState
impl Clone for MouseState
source§fn clone(&self) -> MouseState
fn clone(&self) -> MouseState
Returns a copy 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 MouseState
impl Debug for MouseState
source§impl PartialEq<MouseState> for MouseState
impl PartialEq<MouseState> for MouseState
source§fn eq(&self, other: &MouseState) -> bool
fn eq(&self, other: &MouseState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for MouseState
impl Eq for MouseState
impl StructuralEq for MouseState
impl StructuralPartialEq for MouseState
Auto Trait Implementations§
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