Skip to main content

btn_recognizer/key/
mod.rs

1//! Timestamp-driven multi-button recognition framework.
2//!
3//! The normal entry point is [`ButtonEngine`]. Individual
4//! debounce, chord, and gesture stages are also public for advanced use.
5
6pub mod chord;
7pub mod config;
8pub mod debounce;
9mod debounce_fsm;
10pub mod engine;
11pub mod gesture;
12mod gesture_fsm;
13pub mod input;
14pub mod types;
15
16pub use chord::{ChordError, ChordResolver};
17pub use config::{
18    ActiveLevel, ButtonConfig, ChordConfig, ChordReleasePolicy, ConfigError, DebounceConfig,
19    FrameworkConfig, GestureConfig, HoldAfterTapPolicy, RepeatConfig,
20};
21pub use debounce::{DebounceBank, DebounceBankError, DebounceError, Debouncer};
22pub use engine::{ButtonEngine, UpdateError};
23pub use gesture::{GestureBank, GestureError, GestureRecognizer};
24pub use input::{
25    Binding, BindingError, BindingMapper, BindingValue, EventMapper, EventSelector, FlushError,
26    InputEvent, InputTiming, InputValue, QueuedInputSource, Rejected, SourceId, TryEventSink,
27};
28pub use types::{
29    ButtonEdge, ButtonEvent, ButtonEventKind, ButtonPhase, ButtonSnapshot, ChordId, ControlEdge,
30    ControlId, EventBatch, GestureKind, KeyId, RawLevel, Timestamp,
31};