diff options
author | Simon Thum <simon.thum@gmx.de> | 2010-01-01 19:58:05 +0100 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-01-01 11:22:42 -0800 |
commit | 1763550d0181ac1c775b9ddf490114eff2fbe67e (patch) | |
tree | 59315a3b06c641a48b56c9ef905b4dfb323046f3 /include | |
parent | 435f27667f84269768efecde34de4af2b2d43376 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/ptrveloc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ptrveloc.h b/include/ptrveloc.h index 2a4b40b19..676c46419 100644 --- a/include/ptrveloc.h +++ b/include/ptrveloc.h @@ -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; |