1
0
Fork 0
forked from wry/wry

Merge pull request #834 from Stoppedpuma/sensitivity_clamp_fix

Expand control center sensitivity clamp
This commit is contained in:
mahkoh 2026-03-28 15:47:46 +01:00 committed by GitHub
commit 0d4ee299d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -334,7 +334,7 @@ Accel Profile
: Dropdown: Flat or Adaptive. Shown for devices with acceleration.
Accel Speed
: Numeric input (0.0 to 1.0). Shown for devices with acceleration.
: Numeric input (-1.0 to 1.0). Shown for devices with acceleration.
Click Method
: Dropdown: none, button-areas, clickfinger. Shown for devices that support it.

View file

@ -386,7 +386,7 @@ impl InputPane {
});
}
if let Some(old) = dev.device.accel_speed() {
drag_value(ui, "Accel Speed", old, 0.0..=1.0, 0.01, |v| {
drag_value(ui, "Accel Speed", old, -1.0..=1.0, 0.01, |v| {
dev.set_accel_speed(&self.state, v)
});
}