Skip to main content

Crate openlogi_hid

Crate openlogi_hid 

Source
Expand description

HID++ device discovery and inspection for OpenLogi.

Wraps the hidpp crate over async-hid as the transport. Public entry points:

  • enumerate — one-shot inventory of receivers + paired devices.
  • set_dpi — write a new sensor DPI to a connected device.

Re-exports§

pub use gesture::CaptureChannel;
pub use gesture::CapturedInput;
pub use gesture::GestureError;
pub use gesture::run_capture_session;
pub use inventory::Enumerator;
pub use inventory::InventoryError;
pub use inventory::enumerate;
pub use pairing::Click;
pub use pairing::DiscoveredDevice;
pub use pairing::PairingCommand;
pub use pairing::PairingError;
pub use pairing::PairingEvent;
pub use pairing::PairingReceiver;
pub use pairing::PasskeyMethod;
pub use pairing::ReceiverFamily;
pub use pairing::ReceiverSelector;
pub use pairing::list_pairing_receivers;
pub use pairing::run_pairing;
pub use pairing::unpair;
pub use smartshift::AUTO_DISENGAGE_PERMANENT;
pub use smartshift::SmartShiftMode;
pub use smartshift::SmartShiftStatus;
pub use write::DpiCapabilities;
pub use write::DpiInfo;
pub use write::FeatureEntry;
pub use write::LightingMethod;
pub use write::SharedChannel;
pub use write::WriteError;
pub use write::dump_features;
pub use write::get_dpi;
pub use write::get_dpi_info;
pub use write::get_smartshift_status;
pub use write::set_dpi;
pub use write::set_dpi_on;
pub use write::set_keyboard_color;
pub use write::set_keyboard_color_with;
pub use write::set_smartshift;
pub use write::set_smartshift_on;
pub use write::set_smartshift_sensitivity;
pub use write::toggle_smartshift;
pub use write::toggle_smartshift_on;

Modules§

gesture
Live control capture for one device: divert the MX thumb gesture button, the DPI/ModeShift button, and the thumb wheel over HID++ and turn their events into CapturedInput the GUI can dispatch.
inventory
Enumerate connected HID++ receivers and their paired devices.
pairing
Wireless device pairing for Logi Bolt and Unifying receivers.
reprog_controls
HID++ ReprogControlsV4 (feature 0x1b04) — temporary control diversion and raw-XY reporting, the mechanism behind the MX-line thumb “gesture button”.
smartshift
HID++ SmartShift Enhanced (feature 0x2111) — wheel ratchet ↔ free-spin control with sensitivity threshold.
thumbwheel
HID++ Thumbwheel (feature 0x2150) — divert the MX-line horizontal thumb wheel so its rotation and single-tap gesture arrive as HID++ events instead of native HID scroll.
write
HID++ writes back to the device — DPI and SmartShift.

Enums§

DeviceRoute
How to reach a controllable HID++ device.

Constants§

BOLT_PIDS
USB product IDs that identify Logi Bolt receivers.
DIRECT_DEVICE_INDEX
HID++ device index that addresses a directly-attached device’s own features (USB-cable or Bluetooth, no receiver indirection).
UNIFYING_PIDS
USB product IDs that identify Logi Unifying receivers. Used by callers that need to construct the correct DeviceRoute variant from a raw inventory.