Skip to main content

openlogi_device/
session.rs

1//! Long-running device sessions.
2//!
3//! Each session holds one HID++ channel open for one device, diverts the
4//! controls it needs, streams events until stopped, and restores the device's
5//! native behavior on the way out: [`gesture`] and [`keyboard`] capture
6//! control presses for the agent to dispatch, [`host_switch`] follows a
7//! keyboard's host keys to switch its linked pointing devices. A restore that
8//! cannot finish leaves any of them as a [`restore::PendingRestore`] token.
9
10mod capture;
11mod capture_restore;
12pub mod gesture;
13pub mod host_switch;
14pub mod keyboard;
15pub mod restore;