Enum rdev::EventType [−][src]
In order to manage different OSs, the current EventType choices are a mix and 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)
Mouse Button
ButtonRelease(Button)
Values in pixels. EventType::MouseMove{x: 0, y: 0}
corresponds to the
top left corner, with x increasing downward and y increasing rightward
delta_y
represents vertical scroll and delta_x
represents horizontal scroll.
Positive values correspond to scrolling up or right and negative values
correspond to scrolling down or left
Note: Linux does not support horizontal scroll. When simulating scroll on Linux,
only the sign of delta_y is considered, and not the magnitude to determine wheelup or wheeldown.
Trait Implementations
impl Clone for EventType
[src]
impl Copy for EventType
[src]
impl Debug for EventType
[src]
impl PartialEq<EventType> for EventType
[src]
impl StructuralPartialEq for EventType
[src]
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,