[−][src]Enum rdev::EventType
In order to manage different OS, the current EventType choices is a mix&match to account for all possible events.
Variants
KeyPress(Key)
The keys correspond to a standard qwerty layout, they don't correspond To the actual letter a user would use, that requires some layout logic to be added.
KeyRelease(Key)
ButtonPress(Button)
Some mouse will have more than 3 buttons, these are not defined, and different OS will give different Unknown code.
ButtonRelease(Button)
Values in pixels
Note: On Linux, there is no actual delta the actual values are ignored for delta_x and we only look at the sign of delta_y to simulate wheelup or wheeldown.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnwindSafe for EventType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,