mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-28 21:33:09 +00:00
dix: add smooth limited pointer acceleration profile
This profile is inspired by the accel code removed from the wacom driver. It ascends from zero to acceleration, maxing out at threshold. This means you can control the slope using threshold, which wasn't possible in wacom. For sanity's sake, threshold should grow with acceleration. Works best with adaptive deceleration, since otherwise it only generates acceleration above 1, causing seldom pixel skips. Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
435f27667f
commit
1763550d01
2 changed files with 29 additions and 2 deletions
|
|
@ -37,7 +37,8 @@
|
|||
#define AccelProfileSimple 4
|
||||
#define AccelProfilePower 5
|
||||
#define AccelProfileLinear 6
|
||||
#define AccelProfileLAST AccelProfileLinear
|
||||
#define AccelProfileSmoothLimited 7
|
||||
#define AccelProfileLAST AccelProfileSmoothLimited
|
||||
|
||||
/* fwd */
|
||||
struct _DeviceVelocityRec;
|
||||
|
|
|
|||
Loading…
Reference in a new issue