Skip to main content

Module device_order

Module device_order 

Source
Expand description

Canonical device ordering shared by the GUI carousel and the agent’s no-selection fallback.

HID enumeration order shifts as devices wake, sleep, or are reselected, so both processes order devices by a stable, route-derived identity instead. Sharing the key keeps device order deterministic. The agent additionally excludes standalone raw-HID devices when choosing its input-capture target; they remain ordered here for inventory, display, and settings re-apply.

Structs§

PhysicalDeviceKey
A configuration key backed by enough information to identify one physical device across inventory snapshots and process restarts.

Enums§

DeviceIdentity
A device’s own identity, used to disambiguate two same-model direct devices.
DeviceStableId
A route-derived identity used to order devices deterministically.