Skip to main content

Module init

Module init 

Source
Expand description

Types and initial data used for constructing a keymap::Keymap.

Without SMART_KEYMAP_CUSTOM_KEYMAP, this is a keyboard-only dummy map (letter A) plus generous size constants used by composite shells (also re-exported by smart-keymap-full-system-std). With a custom keymap, build codegen replaces this module. cbindgen:ignore

Re-exports§

pub use key_system::Context;
pub use key_system::Event;
pub use key_system::KeyState;
pub use key_system::PendingKeyState;
pub use key_system::Ref;
pub use key_system::System;

Modules§

key_system
Trivial composite shell: keyboard family only (matches codegen shape).

Constants§

AUTOMATION_INSTRUCTION_COUNT
Number of instructions used by the crate::key::automation implementation.
CHORDED_MAX_CHORDS
The maximum number of chords.
CHORDED_MAX_CHORD_SIZE
The maximum number of keys in a chord.
CHORDED_MAX_OVERLAPPING_CHORD_SIZE
The maximum number of overlapping chords for a chorded key.
CONDITIONAL_LAYER_COUNT
Number of conditional layer rules for the crate::key::layered implementation.
CONFIG
Config used to construct initial context.
CONTEXT
Initial Context value.
KEY_COUNT
The number of keys in the keymap.
KEY_REFS
Without a custom keymap, just the letter ‘A’.
LAYERED_LAYER_COUNT
Number of layers supported by the crate::key::layered implementation.
SEQUENCE_MAX_OVERLAPPING
The maximum number of sequences sharing a primary key.
SEQUENCE_MAX_SEQUENCES
The maximum number of sequences.
SEQUENCE_MAX_SEQUENCE_LEN
The maximum number of steps in a sequence.
SYSTEM
Initial System value.
TAP_DANCE_MAX_DEFINITIONS
The tap-dance definitions.

Type Aliases§

Keymap
Alias for the crate::keymap::Keymap type.