Skip to main content

Module session

Module session 

Source
Expand description

Long-running device sessions.

Each session holds one HID++ channel open for one device, diverts the controls it needs, streams events until stopped, and restores the device’s native behavior on the way out: gesture and keyboard capture control presses for the agent to dispatch, host_switch follows a keyboard’s host keys to switch its linked pointing devices. A restore that cannot finish leaves any of them as a restore::PendingRestore token.

Modules§

gesture
Live control capture for one device: divert the device’s gesture sources (DPI/ModeShift, the MX dedicated gesture button and/or the MX Master 4 haptic panel), and the thumb wheel over HID++ and turn their events into CapturedInput the GUI can dispatch.
host_switch
Keyboard-initiated host-switch synchronization.
keyboard
Live key capture for one keyboard: divert the bound 0x1b04 controls and turn their physical edges into CapturedInput the agent can dispatch.
restore
Firmware ownership that outlives the session which took it.