aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/input.rs4
1 files changed, 4 insertions, 0 deletions
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) {