From 07b1d0e98d736c3e1095345f42ee787985f223f7 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 8 Jan 2024 10:15:29 +0400 Subject: Add touchpad accel-profile setting --- src/input.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/input.rs b/src/input.rs index d0a3df7e..07252447 100644 --- a/src/input.rs +++ b/src/input.rs @@ -96,6 +96,10 @@ impl State { let _ = device.config_tap_set_enabled(c.tap); let _ = device.config_scroll_set_natural_scroll_enabled(c.natural_scroll); let _ = device.config_accel_set_speed(c.accel_speed); + + if let Some(accel_profile) = c.accel_profile { + let _ = device.config_accel_set_profile(accel_profile.into()); + } } if device.has_capability(input::DeviceCapability::TabletTool) { -- cgit