[][src]Module keytokey::handlers

Modules

debug_handlers

Structs

AutoShift

Shift keys if they're pressend beyond threshold_ms supposedly for RSI sufferers - this implementation has not been used in daily usage yet.

Layer

A layer either rewrites a key to another one or outputs a string upon key release.

LongTap

Handler that does one thing on a short tab, and another on a long tab with a configurable threshold

OneShot

A OneShot key. Press it, on_activate will be called.

PressMacro

The simplest callback - call on_trigger on press, nothing on release trigger may be any keycode, but consider using the constants in UserKey::* which is not used by either UnicodeKeyboard or UsbKeyboard

PressReleaseMacro

A simple callback - call on_press(output: impl USBKeyOut) on key press and on_release(output) on release)) trigger may be any keycode, but consider using the constants in UserKey::* which is not used by either UnicodeKeyboard or UsbKeyboard

RewriteLayer

A layer that only supports replacing key codes with other key codes.

Sequence

A sequence is a series of keystrokes (press and release) that upon finish (ie. the release of the last key) sends first a (configurable) number of backspaces (to undo the input) and then an action.

SpaceCadet

SpaceCadet Keys are keys that do one Action on tap, and an OnOff if depressed while the next key is pressed.

StickyMacro

a macro that is called 'on' on the the first keypress and off on the second keyrelease. Using this you can implement e.g. sticky modifiers

TapDance

Depending on how often a key has ben pressed repeatedly (within a timeout), do different things.

USBKeyboard

The default bottom layer

UnicodeKeyboard

This processor sends unicode 'characters' just map your keys to unicode 'code points' sending happens on keyrelease - no key repeat

Enums

AutoOff
HandlerResult
LayerAction
TapDanceEnd

Traits

Action

A callback used when one single action is needed

OnOff

A trait for callbacks when an on/off action is needed

ProcessKeys

Handlers are defined by this trait

TapDanceAction

call backs for completed tap dances