pub enum CapturedInput {
Gesture(GestureDirection),
ButtonPressed(ButtonId),
Scroll(i16),
}Expand description
One input captured from the active device.
Variants§
Gesture(GestureDirection)
A completed gesture-button swipe.
ButtonPressed(ButtonId)
A diverted button was pressed — the DPI/ModeShift button
(ButtonId::DpiToggle) or the thumb-wheel single tap
(ButtonId::Thumbwheel).
Scroll(i16)
Thumb-wheel rotation to re-synthesise as horizontal scroll, in the
wheel’s diverted_res increments. Emitted only while the wheel is
diverted to capture its click.
Trait Implementations§
Source§impl Clone for CapturedInput
impl Clone for CapturedInput
Source§fn clone(&self) -> CapturedInput
fn clone(&self) -> CapturedInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CapturedInput
Source§impl Debug for CapturedInput
impl Debug for CapturedInput
Source§impl<'de> Deserialize<'de> for CapturedInput
impl<'de> Deserialize<'de> for CapturedInput
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
impl Eq for CapturedInput
Source§impl PartialEq for CapturedInput
impl PartialEq for CapturedInput
Source§impl Serialize for CapturedInput
impl Serialize for CapturedInput
impl StructuralPartialEq for CapturedInput
Auto Trait Implementations§
impl Freeze for CapturedInput
impl RefUnwindSafe for CapturedInput
impl Send for CapturedInput
impl Sync for CapturedInput
impl Unpin for CapturedInput
impl UnsafeUnpin for CapturedInput
impl UnwindSafe for CapturedInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.