Skip to main content

Module host_switch

Module host_switch 

Source
Expand description

Keyboard-initiated host-switch synchronization.

A session temporarily diverts the keyboard’s three host controls, observes which channel was pressed, switches the linked pointing devices, and then switches the keyboard itself. Ordering matters: once the keyboard leaves this host its HID++ channel can no longer command a mouse sharing the same receiver.

Enums§

HostSwitchError
Failure while arming or running a host-switch link.
HostSwitchStopReason
Why an armed host-switch session is being stopped externally.

Functions§

run_host_switch_session
Capture host switch keys on keyboard until one is pressed or shutdown resolves. Controls are restored before a requested host is returned.
switch_linked_hosts
Move reachable targets to host, then move the keyboard last.