btn-recognizer 0.2.2

Timestamp-driven button debouncing with multi-tap, hold, repeat, and multi-key chord gesture recognition
Documentation
//! Timestamp-driven multi-button recognition framework.
//!
//! The normal entry point is [`ButtonEngine`]. Individual
//! debounce, chord, and gesture stages are also public for advanced use.

pub mod chord;
pub mod config;
pub mod debounce;
mod debounce_fsm;
pub mod engine;
pub mod gesture;
mod gesture_fsm;
pub mod input;
pub mod types;

pub use chord::{ChordError, ChordResolver};
pub use config::{
    ActiveLevel, ButtonConfig, ChordConfig, ChordReleasePolicy, ConfigError, DebounceConfig,
    FrameworkConfig, GestureConfig, HoldAfterTapPolicy, RepeatConfig,
};
pub use debounce::{DebounceBank, DebounceBankError, DebounceError, Debouncer};
pub use engine::{ButtonEngine, UpdateError};
pub use gesture::{GestureBank, GestureError, GestureRecognizer};
pub use input::{
    Binding, BindingError, BindingMapper, BindingValue, EventMapper, EventSelector, FlushError,
    InputEvent, InputTiming, InputValue, QueuedInputSource, Rejected, SourceId, TryEventSink,
};
pub use types::{
    ButtonEdge, ButtonEvent, ButtonEventKind, ButtonPhase, ButtonSnapshot, ChordId, ControlEdge,
    ControlId, EventBatch, GestureKind, KeyId, RawLevel, Timestamp,
};