pub enum InputEvent {
Added {
device_id: u32,
},
Removed {
device_id: u32,
},
MouseMotion {
device_id: u32,
delta: (f64, f64),
},
MouseWheel {
device_id: u32,
delta: (f64, f64),
},
Motion {
device_id: u32,
axis_id: u32,
value: f64,
},
Button {
device_id: u32,
button_id: u32,
state: ElementState,
},
Key {
device_id: u32,
physical_key: PhysicalKey,
state: ElementState,
},
}Variants§
Trait Implementations§
Source§impl Clone for InputEvent
impl Clone for InputEvent
Source§fn clone(&self) -> InputEvent
fn clone(&self) -> InputEvent
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 InputEvent
impl Debug for InputEvent
Source§impl<'de> Deserialize<'de> for InputEvent
impl<'de> Deserialize<'de> for InputEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Into<IntersticeValue> for InputEvent
impl Into<IntersticeValue> for InputEvent
Source§fn into(self) -> IntersticeValue
fn into(self) -> IntersticeValue
Converts this type into the (usually inferred) input type.
Source§impl Serialize for InputEvent
impl Serialize for InputEvent
Source§impl TryFrom<IntersticeValue> for InputEvent
impl TryFrom<IntersticeValue> for InputEvent
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