K3KeystrokeEngine
The core keystroke engine for the k3lp library. This engine is responsible for handling raw key inputs, evaluating multi-tap behaviors, and mapping keystrokes to their respective outputs/actions based on the provided model.
New implementation specific actions can be added with the getActionForMarker function.
val customAction = getActionForMarker("namespace:customAction")The namespace can be any valid alphanumerical custom string, e.g. example.
Constructors
Creates a new instance of the K3 keystroke engine with the specified model and timing configurations.
Properties
Functions
Obtain the K3Descriptor for the given qualified name.
Processes a given K3String or K3Descriptor. If the value is a string, this function behaves as if emitText was directly invoked. If the value is a descriptor, the namespaced descriptor processor (if any) will be invoked.
Performs a backspace action by first doing a backspace transform pass, followed by a simple transform pass.
Emits a descriptor by invoking the namespaced descriptor processor. May call other emit functions.
Handle the longPressActions a K3Key has specified.
Resolve the K3Key by keyId and perform onLongPress.