Skip to main content

set_scroll_wheel_mode

Function set_scroll_wheel_mode 

Source
pub async fn set_scroll_wheel_mode(
    backend: &dyn HidBackend,
    route: &DeviceRoute,
    resolution: ScrollResolution,
    inverted: bool,
) -> Result<ScrollWheelMode, WriteError>
Expand description

Set wheel resolution and native inversion together in one HID++ write.

This is the agent re-apply path: reading once and writing the complete mode avoids briefly exposing a mixed resolution/inversion state after reconnect.