pub enum Button {
Left,
Right,
Middle,
Unknown(u8),
}
Expand description
Standard mouse buttons
Some mice have more than 3 buttons. These are not defined, and different
OSs will give different Button::Unknown
values.
Variants§
Trait Implementations§
source§impl PartialEq<Button> for Button
impl PartialEq<Button> for Button
impl Copy for Button
impl Eq for Button
impl StructuralEq for Button
impl StructuralPartialEq for Button
Auto Trait Implementations§
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin for Button
impl UnwindSafe for Button
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