Skip to main content

Module tap_hold

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).
PendingKeyState
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.
InterruptResponse
How the tap hold key should respond to interruptions (input events from other keys).
PendingOutput
Speculative output while tap-hold is pending.
TapHoldState
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.