Introducing a new way to review your PRs.

Read the announcement

aprilnea / openlogi

⚡️A native, local-first alternative to Logitech Options+, written in Rust 🦀 — remap buttons, DPI, and SmartShift over HID++. No account, no telemetry.

View on GitHub

25 documents · Updated Nov 23, 2026

docs / core-domain-and-configuration

Core domain and configuration

The core crate is OpenLogi’s shared domain layer. It gives the desktop app, background agent, and command-line tools one model for devices, capabilities, user settings, input bindings, and support data. It keeps device behavior and saved user intent consistent while leaving hardware I/O and host UI work to the processes that own them. See shared platform services, permissions and assets, and user interface foundation for related system boundaries.

Domain model

The domain model separates device identity from device capability. Identity describes what a product is, while capabilities describe which controls the current hardware connection can safely offer.

Device identity

Device identity is the stable description used to show a known device and restore its likely settings panels. It keeps model-level facts such as the display name, model information, device kind, and measured capabilities. Saved identity metadata removes serial and unit values from the snapshot, while a separate stable device key can still retain the identity needed to follow one physical device.

This lets the application show a sleeping device with useful context before a live probe completes. A user-assigned name stays separate from the model name, so an inventory refresh cannot overwrite the user’s label.

References: crates/…/device.rs• L70-139 crates/…/device_order.rs• L206-249 crates/…/per_device.rs• L134-183 crates/…/identity.rs• L6-133

Device capabilities

Capabilities are the source of truth for configurable device features. They cover input remapping, pointer control, wheel behavior, lighting, keyboard state, gaming controls, camera or light support, and other device services. Device kind remains an identity label and an offline fallback. It does not decide which panels or actions are valid.

The core can derive capabilities from a reported feature set. When a device is offline, it uses a limited kind-based presumption so known host-side controls remain visible without claiming unsupported hardware features. HID++ 1.0 devices receive an even narrower host-side fallback because they have no feature table.

References: crates/…/device.rs• L18-63 crates/…/device.rs• L125-350

Device inventory

The inventory is the shared snapshot of receivers, paired devices, and direct or standalone devices. It carries enough model, connection, battery, capability, and online state for the GUI and agent to agree on what the user can see and control. It also records whether a device has been probed and whether its settings changed since the last snapshot.

The snapshot preserves offline receiver slots and distinguishes standalone raw-HID devices from HID++ devices. A settings revision tells consumers that a device changed its own state, while HID++ 1.0 and unprobed states remain distinct from a completed capability probe.

References: crates/…/device.rs• L646-755

Device routes and keys

A device route identifies how OpenLogi reaches a device. A persisted device key identifies which physical device owns the user’s settings, while a runtime key gives each current route a deterministic name. Stable unit identities or serials let settings follow a device between a receiver and a direct connection. A route-derived key is used only when no stable identity is available.

The route index also supports sleeping devices whose physical identity cannot be read. Shared stable ordering uses the same route information, so the GUI and agent do not reorder devices when enumeration changes. This keeps transport details useful for lookup without making a receiver slot the permanent owner of a device.

References: crates/…/config.rs• L1-8 crates/…/identity.rs• L18-62 crates/…/device.rs• L142-184 crates/…/device_order.rs• L12-24 crates/…/device_order.rs• L135-224

Input bindings

The binding domain describes what a physical control means. It stores portable actions and binding shapes so the GUI can edit them and platform-specific input code can execute them later.

Binding identities

Binding identities cover mouse controls, HID++ keyboard controls, keypad grid positions, and G-series keyboard keys. Each identity has a stable configuration name and a user-facing label. Keyboard controls can use a known catalog name or a numeric control form, while keypad pages and G-key profiles are part of the binding identity.

The model keeps capture identity separate from dispatch identity. A keypad press is reported as a physical first-page slot and resolves against the active page. A G-key press is reported through the M1 slot and resolves against the active M1–M3 profile when profile mode is enabled.

References: crates/…/button.rs• L16-37 crates/…/button.rs• L90-120 crates/…/g_keys.rs• L1-10 crates/…/g_keys.rs• L137-195

Binding shapes and defaults

A binding can be a single action, a short/long action pair, a gesture map, or a wheel-hold action. The shape carries the interaction mode, so consumers that need the full press lifecycle keep the shape while one-shot consumers use its click action.

Fresh devices receive safe canonical defaults. Native primary clicks remain native, common mouse controls keep their familiar actions, the gesture button starts with a complete direction map, and an incidental thumbwheel tap is inert. Keyboard, keypad, and G-series controls remain unbound until the user or a model-specific layout gives them a deliberate meaning.

References: crates/…/value.rs• L1-178 crates/…/defaults.rs• L9-148 crates/…/tests.rs• L651-725

Effective binding maps

Effective binding maps combine stored device choices with defaults and an optional foreground-application overlay. An unset control uses the device or model default, while a stored binding wins. A per-application entry replaces only the listed control with one action.

The core exposes separate projections for one-shot actions, lifecycle-aware bindings, HID++ gesture sources, and operating-system hook gestures. A sparse gesture keeps its normal click fallback, while a per-application single-action override removes that control from gesture dispatch for the selected application. This prevents a long press from losing its release action and prevents an overridden control from being handled by two paths.

References: crates/…/bindings.rs• L14-72 crates/…/bindings.rs• L145-224

Action vocabulary and effects

An action is the user-facing meaning of a binding. The core groups actions into editing, browser, navigation, media, pointer, scrolling, DPI, and system behavior. It also supports recorded shortcuts, text, scripts, workflows, application targets, and actions handled by the agent.

The core lowers each action to a small platform-neutral effect. The injector can then handle clicks, named shortcuts, recorded keys, scrolling, media keys, native system actions, text, and scripts without knowing every configuration action. Device-side work such as DPI changes, the Actions Ring, application opening, and held bare modifiers remains with the agent or its surrounding runtime. This keeps platform differences behind the process that owns input or device control.

References: crates/…/action.rs• L10-24 crates/…/action.rs• L158-267 crates/…/effect.rs• L24-85 crates/…/effect.rs• L219-308

Keyboard chord values

A key combo is a portable keyboard chord made from one validated USB HID keyboard usage and zero or more modifiers. Human-readable configuration stores its canonical text form, while binary process messages store validated modifier bits and the HID usage so platform backends can map them to local input APIs.

Modifier-only holds use the same cross-platform modifier vocabulary but intentionally have no ordinary key. They require at least one modifier and keep their press state until release. A one-shot dispatcher cannot turn them into a meaningful balanced tap.

The parser accepts common names and aliases, then renders one stable label. This gives user input, saved TOML, UI labels, and platform-neutral dispatch one shared meaning while rejecting unknown keys and modifier bits.

References: crates/…/key_combo.rs• L11-21 crates/…/key_combo.rs• L125-193 crates/…/key_combo.rs• L265-386 crates/…/modifiers.rs• L13-35 crates/…/modifiers.rs• L73-177

Press lifecycle actions

Some actions last for the physical press instead of producing one balanced event. A whole held shortcut keeps its key and modifiers down, a switcher-style action taps the ordinary key once while keeping only its modifiers down, and a modifier-only action keeps its modifier set down.

The action model exposes this distinction to lifecycle-aware runtimes. One-shot dispatch falls back safely: held chords become balanced chord effects, while a bare modifier hold becomes agent-side work rather than an accidental modifier tap.

References: crates/…/action.rs• L182-252 crates/…/action.rs• L537-566 crates/…/effect.rs• L41-50 crates/…/tests.rs• L55-107

Actions Ring presentation

The Actions Ring uses the same action domain as ordinary bindings. Each action supplies a stable label, category, and default icon so the editor and overlay can present one consistent catalog. Payload actions build labels from their saved value, while fixed actions use stable translation keys.

The icon set is also a shared presentation contract. It maps action meanings to the asset names served by the UI and provides general-purpose icons for custom shortcuts, scripts, file targets, and other ring entries. Persisted icon names and process messages therefore use one shared catalog.

References: crates/…/action.rs• L308-506 crates/…/icon.rs• L5-18 crates/…/icon.rs• L127-193 crates/…/icon.rs• L319-346

Gesture and page behavior

Gesture mode is a per-button fact represented by a gesture-shaped binding. Disabling it moves the direction map to dormant user memory and leaves the button’s click action active. Enabling it restores the map. HID++ gesture sources and operating-system hook sources use different capture paths, but both consume the same binding meaning.

Keypad pages work in the same domain model. The active page maps page-qualified bindings onto the physical grid keys, and paging actions are seeded only when a device has more than one page. Reducing the page count removes bindings from discarded pages in both device-wide and application-specific maps. Operating-system hook gestures include only gesture-shaped hook controls, while HID++ gesture maps seed the directions needed by their live sources.

References: crates/…/bindings.rs• L61-112 crates/…/bindings.rs• L145-224 crates/…/per_device.rs• L653-694 crates/…/device.rs• L240-252

Gaming controls

Gaming mouse layouts describe the model-specific button order, stock functions, host-mode needs, and stock DPI presets. Known layouts let the agent capture only controls it understands. An unknown gaming model exposes standard OS-visible buttons for safe editing but does not guess extra G-buttons.

G-series keyboard controls support either three profile-bound G-key sets or nine independent keys. The M1–M3 keys select profiles in profile mode. In nine-button mode they are ordinary bindable controls. The core keeps ownership of the whole G-key column explicit, so a saved binding alone does not silently capture the cluster.

References: crates/…/gaming.rs• L8-19 crates/…/gaming.rs• L56-169 crates/…/bindings.rs• L114-142 crates/…/settings.rs• L912-949

User configuration

Config is the logical user state shared by OpenLogi processes. It combines app-wide preferences, global keyboard bindings, application aliases, Flow handoff settings, the selected device, and per-device state.

Configuration scopes

The configuration keeps each choice at the narrowest useful scope:

  • App-wide: Startup, input capture, updates, assets, language, appearance, gallery layout, scrolling, notifications, and profile-context choices.
  • Keyboard-wide: Function-key bindings shared by keyboards.
  • Per device: Bindings, DPI, wheel state, lighting, camera state, keyboard state, gaming state, and reconnect-restored values.
  • Per application: Single-action button overrides and Actions Ring layouts for a foreground application.

Unset device values mean that OpenLogi leaves that hardware state alone. A device entry can still exist for identity or route metadata without disabling management. New app-wide fields use defaults when absent so older files keep their prior behavior.

References: crates/…/config.rs• L64-185 crates/…/device.rs• L194-416 crates/…/settings.rs• L153-319

Device settings

Per-device settings preserve choices that hardware may lose after power-off or reconnect. They include bindings, Actions Ring layout, camera controls and profiles, DPI and presets, wheel state, lighting, keyboard layout, Fn-lock, report rate, pointer speed, force sensing, fixed-key policy, onboard memory, G-key ownership, G-Shift, keypad pages, and host-switch links.

The read and write surface creates a device entry only when needed and returns fresh-device defaults for absent entries. App-wide scrolling and thumbwheel settings can be overridden per device. Device settings remain separate from live read-back state, which lets the agent re-apply only deliberate user choices. Some settings are intentionally optional: an unset value leaves the device’s own state in control, while an enabled management choice is restored after reconnect.

References: crates/…/per_device.rs• L22-180 crates/…/per_device.rs• L198-273 crates/…/per_device.rs• L301-410 crates/…/per_device.rs• L460-586 crates/…/per_device.rs• L638-756

Route-specific settings

A physical device can have different measured capabilities or deliberate values on different routes. Link records store route capabilities and a small set of route-specific overrides for DPI, wheel state, lighting, and SmartShift.

When a device is active on a route, the link override wins over the device-wide value. This keeps one physical device entry while allowing transport-specific behavior, such as a feature that exists through a receiver but not through USB.

References: crates/…/device.rs• L142-184 crates/…/device.rs• L418-466

Device identity adoption

Identity adoption moves a route-keyed entry into the stable physical-device entry when an online sighting reveals the device identity. It also records the route and measured capabilities, repoints the selected device and host-switch targets, and removes any old owner of a re-paired route.

The merge preserves user intent. Maps merge by key, route-aware values become link overrides when needed, and populated canonical lists or positional layouts remain authoritative. Metadata-only canonical entries do not shadow older entries that still hold real settings.

References: crates/…/identity.rs• L64-246 crates/…/identity.rs• L249-436 crates/…/identity.rs• L489-1064

Flow handoff configuration

Flow stores the trusted peers, screen-edge placement, and host slots needed to move input and a selected device between trusted machines. Discovery, transport, and the handoff remain outside the core crate. The core validates the references before another process uses them.

The configuration requires unique peer names and keys, known peer references, stable device identity keys, a local host slot, and unique Easy-Switch slots across peers.

References: crates/…/flow.rs• L20-82 crates/…/flow.rs• L255-278 crates/…/flow.rs• L325-385 crates/…/flow.rs• L449-539

Configuration migration

The configuration schema turns older saved shapes into the current model during load. The current schema is v11. It includes Flow and retains earlier migrations for unified bindings, physical-device keys, per-button gestures, threshold bindings, wheel-hold bindings, application aliases, and fixed-key policy.

Unknown future versions and invalid version zero fail instead of being interpreted as a different shape. Absent optional fields use their defined defaults, while strict unknown-field checks prevent a typo or unsupported field from being silently saved.

References: crates/…/config.rs• L68-135 crates/…/device.rs• L620-782 crates/…/device_settings.rs• L285-302

Configuration-oriented services

The core crate also provides small services that keep product processes aligned without owning their platform work.

Configuration edits

Configuration edits give short-lived writers a safe way to change config.toml without replacing changes made by the long-running settings app or agent. An edit loads the current document and its revision, applies changes in memory, then commits only if the source is still the same.

Device edits resolve the correct physical or route key before saving. They preserve link override precedence and reject a device-wide update when a route-specific value would hide it. A conflict leaves the newer file intact so the caller can reload and decide how to merge.

References: crates/…/edit.rs• L26-74 crates/…/edit.rs• L77-123 crates/…/edit.rs• L125-219

Device value validation

Shared value types constrain data before it reaches a device or a host service. Examples include bounded brightness, normalized standalone-light brightness, valid camera stream dimensions, safe pointer speed, non-zero onboard profile indexes, and SmartShift thresholds that exclude firmware sentinel values from persisted user state.

These rules give the GUI, agent, and configuration loader one meaning for a value. Device-specific drivers still map safe domain values to native units.

References: crates/…/settings.rs• L397-487 crates/…/settings.rs• L737-807 crates/…/settings.rs• L881-1039 crates/…/device_settings.rs• L453-632

Diagnostics reports

Diagnostics turn shared app, agent, inventory, asset, and device state into a support-ready Markdown report. The report distinguishes an unreachable agent from scanning or failed inventory and identifies whether device artwork came from the bundle, user cache, or a silhouette fallback.

The report classifies the live connection route for each device. For a direct multi-transport device, it uses the active product identity when available instead of choosing from the device’s full list of supported transports. This keeps USB and Bluetooth reports accurate. The report remains model-level by design: it omits receiver unique IDs, serial numbers, and unit IDs, and it renders unavailable agent values as unknown rather than as a false permission or feature state.

References: crates/…/diagnostics.rs• L10-115 crates/…/diagnostics.rs• L117-252 crates/…/diagnostics.rs• L254-432

Device control contracts

The core crate publishes shared state and error meanings for device controls without performing device I/O. The agent owns reads and writes, while the GUI and IPC layer use the same values to show current state and explain failures.

Control state

Control state covers features whose live value or supported range matters to the user. This includes keyboard backlight, fixed-key disabling, force sensing, sidetone, wheel reporting, Fn-lock, Easy-Switch hosts, onboard profiles, and SmartShift.

These contracts keep user-facing state separate from transport details. They preserve distinctions such as unmanaged versus explicitly empty fixed-key policy, host ownership versus an active onboard profile, and supported versus unsupported device controls.

References: crates/…/device.rs• L343-415 crates/…/settings.rs• L912-1039 crates/…/backlight.rs• L15-151 crates/…/easy_switch.rs• L12-54 crates/…/onboard.rs• L1-72

Control errors

Typed control errors preserve the difference between a missing device, an unsupported feature, an invalid value, a timeout, and a protocol failure. Callers can then choose whether to retry, hide a control, report invalid input, or ask the user to reconnect the device.

References: crates/…/error.rs• L14-102 crates/…/error.rs• L103-260 crates/…/error.rs• L263-366

Configuration lifecycle

The configuration lifecycle turns a TOML document into validated current state and writes a safe current document back to disk. Load accepts supported older schemas and migration turns them into the current domain shape.

Safe persistence

Long-lived configuration writers retain the exact source revision they loaded. A sidecar lock and revision comparison prevent one process from overwriting another process’s edits. Successful writes use an atomic replacement, preserve useful TOML formatting where possible, and keep a small backup set.

Short-lived writers use the same revision boundary through ConfigEdit. They wait briefly for an active save, then report a conflict or write failure instead of silently replacing another process’s change.

Migration also keeps a recovery copy of the pre-migration source until the rewritten file is safely saved. Symlinked configuration paths resolve to one shared write boundary while preserving the user-facing link.

References: crates/…/edit.rs• L1-9 crates/…/edit.rs• L26-74 crates/…/revision.rs• L1-22 crates/…/file.rs• L107-121 crates/…/file.rs• L176-267 crates/…/file.rs• L438-540

Configuration paths

OpenLogi uses separate per-user locations for configuration, downloaded data, process state, and runtime sockets. Production and development profiles use separate namespaces so they do not share settings, locks, caches, or sockets.

References: crates/…/paths.rs• L31-75 crates/…/paths.rs• L103-131 crates/…/paths.rs• L191-254 crates/…/env.rs• L9-12

Cross-process contracts

The core crate gives the GUI, agent, overlay, and support tools shared names and small coordination contracts. These contracts keep process discovery and ownership consistent without putting platform work in the domain layer.

Process identity

Process identity defines bundle names, helper locations, foreground-process matching, and GUI deep-link commands. Production and development identities remain separate, so a development build does not claim installed-app state or permissions.

Deep links provide a small command path to the running GUI. The sender and receiver share a fixed command vocabulary for showing windows, opening settings, checking updates, or quitting. Device links accept only keys that name a physical device, not a receiver slot that may later hold another device.

References: crates/…/brand.rs• L20-72 crates/…/brand.rs• L102-228 crates/…/brand.rs• L266-332 crates/…/brand.rs• L344-417

Runtime controls

Shared environment names select the profile, log filter, asset source, and development render source. Shared logging applies one filter rule and one fallback across processes. A single-instance guard prevents two copies of the same role from competing for a window, device service, or IPC endpoint.

References: crates/…/env.rs• L1-27 crates/…/logging.rs• L1-31 crates/…/single_instance.rs• L1-10 crates/…/single_instance.rs• L66-104

Linux virtual input names

The core defines the names and recognition rules for OpenLogi’s Linux virtual input devices. The input hook and permissions checks can therefore ignore OpenLogi’s own devices without confusing them with physical or unrelated devices. Current and legacy prefixes are recognized so development and installed agents can run together.

References: crates/…/uinput.rs• L1-62 crates/…/uinput.rs• L64-115

Locale and input values

The core also supplies platform-neutral rules for language selection and input values. Host processes apply the results to their own UI or input backends.

Locale resolution

Locale resolution uses an explicit stored language first, then the system locale, and finally English. It maps supported region and script variants to the shipped catalog set, including special handling for Chinese, Portuguese, and Norwegian variants.

Changing the locale updates process-wide selection, but an already rendered view must refresh itself. This gives startup and live settings changes the same language choice.

References: crates/…/locale.rs• L22-30 crates/…/locale.rs• L56-147

Scroll values

ScrollDelta keeps signed horizontal and vertical motion together with its unit. Pixel motion and wheel ticks remain distinct so platform adapters cannot mix them during smoothing or accumulation. Non-finite values are not valid input for later processing.

References: crates/…/scroll.rs• L1-25 crates/…/scroll.rs• L28-61

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep capability flags aligned with the controls and panels they enable. Device kind is not a substitute for a measured capability.
  • Keep physical-device key resolution, route ownership, adoption, selected-device references, and host-switch targets aligned.
  • Preserve route override precedence when adding a new per-device value that can differ by transport.
  • Treat action names, button names, binding shapes, keypad page names, G-key profile names, and serialized settings as persisted contracts.
  • Keep default bindings aligned with capture behavior. An inert default must not become an accidental captured action.
  • Keep gesture mode derived from binding shape and preserve dormant direction maps when a button is demoted.
  • Keep HID++ gesture seeding, OS-hook gesture ownership, click fallbacks, and per-app demotion aligned.
  • Keep keypad page defaults and page-binding cleanup aligned across device-wide and per-app maps.
  • Keep action labels, translation keys, categories, catalog membership, and Actions Ring icons aligned when adding or changing an action.
  • Keep action-to-effect classification exhaustive. Platform injectors consume effects rather than the full action vocabulary.
  • Keep modifier aliases, canonical label order, validated HID usages, and human-readable versus binary shortcut formats aligned.
  • Keep held-chord and held-modifier lifecycle rules aligned with the runtime that receives both press and release edges.
  • Keep gaming layouts, host-mode needs, stock actions, G-key ownership, and profile dispatch aligned across the GUI and agent.
  • Keep per-device optional values, reconnect restore behavior, management state, and host-switch links aligned with the agent’s device control policy.
  • Keep the schema version and migration rules aligned when a saved field or enum meaning changes. Preserve default behavior for absent fields.
  • Keep bounded value types aligned with the configuration loader and the device or IPC boundary that consumes them.
  • Keep edit revision checks and device-key resolution aligned for every short-lived configuration writer.
  • Keep diagnostics privacy rules and live-route classification aligned with every field added to the support report. Unknown agent state must remain unknown.
  • Keep shared control state and typed error categories aligned with the GUI, agent, and IPC consumers.
  • Keep configuration revision checks, sidecar locks, migration recovery, backups, and symlink resolution as one persistence contract.
  • Keep process names, deep-link commands, environment controls, logging defaults, and virtual input prefixes aligned across host processes.
  • Keep locale negotiation rules and scroll units aligned across UI activation and platform input adapters.

Important failure modes

TriggerConsequenceGuard
A device is keyed by route or model instead of stable physical identityIdentical devices can share settings or a device can lose settings after changing connectionsResolve identity keys first and use the route index only as a lookup fallback
A re-paired receiver route remains indexed by its former deviceOffline lookup can apply one device’s settings to anotherRemove competing route claims during route adoption
A panel is gated only by device kindA misclassified or sleeping device loses valid controlsUse measured capabilities and limited offline presumptions
An unknown gaming model captures guessed extra buttonsThe agent can intercept the wrong hardware controlExpose standard buttons only until a model layout is known
A gesture map is projected without its click fallbackA sparse saved map can silently disable the button’s ordinary pressSeed the click default when building effective maps
A per-app override leaves a control in the gesture setThe override and gesture path can both handle one physical pressBuild gesture projections from the app-effective binding map
Paging actions are seeded for a one-page keypadA normal keyboard can appear managed and start a capture sessionSeed paging defaults only when the configured page count is greater than one
A page count is reduced without clearing removed-page bindingsRe-adding a page can resurrect old device or app bindingsRemove discarded grid bindings from every stored profile
A direct multi-transport device is labeled from static transport flagsA USB device can appear as Bluetooth in diagnosticsMatch the live direct product identity to the model transport first
An unknown agent state is rendered as a denied permissionSupport triage follows the wrong recovery pathRender unavailable process state as unknown
A page or G-key profile is stored under an ambiguous nameTwo physical controls can collide in configurationUse one canonical spelling for page and profile-qualified identities
A held action is treated as an ordinary one-shot actionA chord or modifier can remain down, or a switcher can close at onceUse the lifecycle metadata and the safe one-shot effect fallback
Modifier bits or HID usages outside the shared vocabulary are acceptedA saved shortcut can fail in one process or map to the wrong keyValidate modifier bits and keyboard usages at the domain boundary
An action is added without an effect or catalog/icon mappingA binding can save but inject incorrectly or appear without a usable picker entryKeep the exhaustive effect match and shared action presentation tables aligned
A saved value outside its device or UI range reaches the driverThe device rejects the write or receives an unsafe valueValidate during load and clamp only through the shared domain rule
A future schema is accepted as a current schemaSettings can be dropped or rewritten with the wrong meaningReject unsupported versions and migrate only known older versions
A short-lived writer ignores the loaded revisionAnother process’s settings are lostCommit through the shared lock and revision check
A device edit writes a device-wide value while a route override existsThe saved value appears to change but has no effect on reconnectRefuse the edit or change the route override explicitly
A caller reduces a typed control error to generic textUnsupported controls may be retried or shown as recoverable failuresPreserve the shared error category and operation context

Key files

FileWhy to read it
crates/…/device.rsDefines the shared device identity, capability, inventory, battery, and transport model.
crates/…/device_order.rsDefines deterministic device ordering and the boundary between runtime route keys and persisted physical keys.
crates/…/config.rsDefines the top-level configuration scopes and schema contract.
crates/…/device.rsShows the per-device state and route-specific data that can be restored or migrated.
crates/…/identity.rsExplains stable device-key resolution, route adoption, and merge behavior.
crates/…/edit.rsShows how short-lived writers apply conflict-safe configuration changes.
crates/…/per_device.rsShows the common read and write surface for device settings, reconnect state, keypad pages, and host links.
crates/…/settings.rsDefines app-wide preferences and validated reusable value settings.
crates/…/binding.rsExposes the reusable binding domain, including actions, effects, shortcuts, modifiers, and ring presentation types.
crates/…/action.rsDefines the persisted action vocabulary, picker catalog, labels, categories, and press-lifecycle meaning.
crates/…/effect.rsDefines the small platform-neutral effect model consumed by input injectors.
crates/…/key_combo.rsDefines portable keyboard usages, shortcut parsing, and human-readable or binary shortcut forms.
crates/…/modifiers.rsDefines shared modifier bits and modifier-only hold values.
crates/…/icon.rsDefines the shared Actions Ring icon catalog and action-to-icon mapping.
crates/…/button.rsDefines control identities and the boundaries between OS-hook, HID++, keypad, and gaming inputs.
crates/…/defaults.rsDefines the safe behavior of a fresh device and gesture map.
crates/…/gaming.rsDefines model-specific gaming mouse layouts and safe unknown-model behavior.
crates/…/bindings.rsBuilds effective bindings and resolves gesture, keypad, gaming, and app-overlay behavior.
crates/…/g_keys.rsDefines G-key profiles, mode keys, and their persisted identities.
crates/…/tests.rsProtects binding serialization, catalog behavior, effect classification, key identities, and default contracts.
crates/…/diagnostics.rsDefines the privacy-filtered support report, route labels, inventory health, and asset states.
crates/…/brand.rsDefines shared process identities, helper names, and deep-link commands.