[−][src]Struct keytokey::handlers::TapDance
Depending on how often a key has ben pressed repeatedly (within a timeout), do different things.
You will need to implement a TapDanceAction
Implementations
impl<M: TapDanceAction> TapDance<M>
[src]
pub fn new(
trigger: impl AcceptsKeycode,
action: M,
timeout_ms: u16
) -> TapDance<M>
[src]
trigger: impl AcceptsKeycode,
action: M,
timeout_ms: u16
) -> TapDance<M>
Trait Implementations
impl<T: USBKeyOut, M: TapDanceAction> ProcessKeys<T> for TapDance<M>
[src]
fn process_keys(
&mut self,
events: &mut Vec<(Event, EventStatus)>,
output: &mut T
) -> HandlerResult
[src]
&mut self,
events: &mut Vec<(Event, EventStatus)>,
output: &mut T
) -> HandlerResult
fn default_enabled(&self) -> bool
[src]
Auto Trait Implementations
impl<M> Send for TapDance<M> where
M: Send,
M: Send,
impl<M> Sync for TapDance<M> where
M: Sync,
M: Sync,
impl<M> Unpin for TapDance<M> where
M: Unpin,
M: Unpin,
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> Same<T> for T
type Output = T
Should always be Self
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>,