Skip to main content

default_binding

Function default_binding 

Source
pub fn default_binding(button: ButtonId) -> Action
Expand description

Sensible defaults for a fresh device so the panel isn’t empty on first run.

Thumbwheel / GestureButton defaults match what Logi Options+ ships for MX-line devices: thumb wheel click → App Exposé, gesture button → Mission Control. The thumb wheel isn’t captured yet; the gesture button is (per-direction, see default_gesture_binding). The bindings persist regardless so the user only configures once.

GestureButton’s entry here is vestigial: in the merged Binding model the gesture button defaults to Binding::Gesture (see default_binding_for), so this single-action value is never the source of truth for it. It is retained only so the per-button-Action callers (the hook map, scroll defaults, labels) stay total.