RKTK API Docs RKTK Home Repo

Trait DebounceDriver

Source
pub trait DebounceDriver {
    // Required method
    fn should_ignore_event(
        &mut self,
        event: &KeyChangeEvent,
        now: Instant,
    ) -> bool;
}
Expand description

Debounce driver interface

Required Methods§

Source

fn should_ignore_event(&mut self, event: &KeyChangeEvent, now: Instant) -> bool

Determines whether events occurring at a certain time should be ignored.

Implementors§