pub enum InputEvent {
OnChange,
OnPress,
OnRelease,
OnHigh,
OnLow,
}Expand description
Lists all events a Input type device can emit/listen.
Variants§
OnChange
Triggered when the Input value changes.
OnPress
Triggered when the button is pressed.
OnRelease
Triggered when the button is released.
OnHigh
Triggered when a value changes to HIGH.
OnLow
Triggered when a value changes to LOW.
Trait Implementations§
Source§impl From<InputEvent> for String
Convert events to string to facilitate usage with EventManager.
impl From<InputEvent> for String
Convert events to string to facilitate usage with EventManager.
Source§fn from(value: InputEvent) -> Self
fn from(value: InputEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InputEvent
impl RefUnwindSafe for InputEvent
impl Send for InputEvent
impl Sync for InputEvent
impl Unpin for InputEvent
impl UnwindSafe for InputEvent
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