Module tap_hold
Expand description
Tap-Hold keys.
Structs§
- Config
- Configuration settings for tap hold keys.
- Context
- Context for Key.
- Key
- A key with tap-hold functionality.
- KeyState
- Key state for tap_hold keys. (Not used).
- Pending
KeyState - The state of a pressed tap-hold key.
- Profile
- One tap-hold behavior profile (timeout, interrupt flavor, idle gate, hold triggers, quick-tap).
- Ref
- Reference for a tap_hold key.
- System
- The key::System implementation for tap hold keys.
Enums§
- Event
- Events emitted by a tap-hold key.
- Interrupt
Response - How the tap hold key should respond to interruptions (input events from other keys).
- Pending
Output - Speculative output while tap-hold is pending.
- TapHold
State - The state of a tap-hold key.
Constants§
- DEFAULT_
CONFIG - Default tap hold config.
- DEFAULT_
INTERRUPT_ RESPONSE - The default interrupt response.
- DEFAULT_
PENDING_ OUTPUT - The default pending output.
- DEFAULT_
PROFILE - Default profile (also the contents of
DEFAULT_CONFIG’s default profile). - DEFAULT_
TIMEOUT - The default timeout.
- MAX_
EXTRA_ PROFILES - Maximum number of extra tap-hold profiles beyond the default (profile 0).
- MAX_
HOLD_ TRIGGER_ POSITIONS - Maximum keymap indices listed in one profile’s
hold_trigger_key_positions.