pub enum Event {
ButtonDown(u8),
ButtonUp(u8),
EncoderDown(u8),
EncoderUp(u8),
EncoderTwist(u8, i8),
}Expand description
Tells what changed in button states
Variants§
ButtonDown(u8)
Button got pressed down
ButtonUp(u8)
Button got released
EncoderDown(u8)
Encoder got pressed down
EncoderUp(u8)
Encoder was released from being pressed down
EncoderTwist(u8, i8)
Encoder was twisted
Trait Implementations§
impl Copy for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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