pub enum InputEventBody {
KeyPress(Key),
KeyRelease(Key),
RelativeMove {
axis: RelativeAxis,
delta: i32,
},
AbsoluteMove {
axis: AbsoluteAxis,
position: i32,
},
Flush,
Dropped,
Other {
kind: EventKind,
code: u16,
value: i32,
},
}
Variants§
Trait Implementations§
Source§impl AsRef<InputEventBody> for InputEvent
impl AsRef<InputEventBody> for InputEvent
Source§fn as_ref(&self) -> &InputEventBody
fn as_ref(&self) -> &InputEventBody
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<InputEventBody> for InputEventBody
impl AsRef<InputEventBody> for InputEventBody
Source§fn as_ref(&self) -> &InputEventBody
fn as_ref(&self) -> &InputEventBody
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for InputEventBody
impl Clone for InputEventBody
Source§fn clone(&self) -> InputEventBody
fn clone(&self) -> InputEventBody
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 InputEventBody
impl Debug for InputEventBody
Source§impl From<InputEvent> for InputEventBody
impl From<InputEvent> for InputEventBody
Source§fn from(event: InputEvent) -> Self
fn from(event: InputEvent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InputEventBody
impl PartialEq for InputEventBody
impl Eq for InputEventBody
impl StructuralPartialEq for InputEventBody
Auto Trait Implementations§
impl Freeze for InputEventBody
impl RefUnwindSafe for InputEventBody
impl Send for InputEventBody
impl Sync for InputEventBody
impl Unpin for InputEventBody
impl UnwindSafe for InputEventBody
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