Skip to main content

set_scroll_inversion

Function set_scroll_inversion 

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

Write the device’s native vertical-scroll inversion flag while preserving its current resolution.

Returns WriteError::FeatureUnsupported when the device lacks 0x2121 or reports that native inversion is not supported.