summaryrefslogtreecommitdiff
path: root/include/ptrveloc.h
diff options
context:
space:
mode:
authorSimon Thum <simon.thum@gmx.de>2009-05-06 10:39:16 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2009-05-07 16:49:06 +1000
commit3fc6fcfb267888d65a22ed7c3eda175a2530a3d5 (patch)
tree4424c1a35d427a48c28fb806a5c445d083905d10 /include/ptrveloc.h
parent9d1597cbefea6a5e7959f2099c46f1a284def7ad (diff)
dix: add 'none' pointer acceleration profile with number -1
This is a shorthand for disabling acceleration, while retaining the possiblity to use constant deceleration. If constant deceleration is also unused, it will optimize motion processing. Other possiblities to deactivate acceleration were quite hidden, and didn't always work as expected. E.g. xset m 1 1 would retain adaptive deceleration, while xset m 1 0 would not (in the default profile). Also removes the 'reserved' profile; it was unused and it's trivial to add new ones anyway. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include/ptrveloc.h')
-rw-r--r--include/ptrveloc.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/ptrveloc.h b/include/ptrveloc.h
index 6ef8c754e..83d188c54 100644
--- a/include/ptrveloc.h
+++ b/include/ptrveloc.h
@@ -27,9 +27,9 @@
#include <input.h> /* DeviceIntPtr */
-/* constants for acceleration profiles;
- * see */
+/* constants for acceleration profiles */
+#define AccelProfileNone -1
#define AccelProfileClassic 0
#define AccelProfileDeviceSpecific 1
#define AccelProfilePolynomial 2
@@ -37,8 +37,7 @@
#define AccelProfileSimple 4
#define AccelProfilePower 5
#define AccelProfileLinear 6
-#define AccelProfileReserved 7
-#define AccelProfileLAST AccelProfileReserved
+#define AccelProfileLAST AccelProfileLinear
/* fwd */
struct _DeviceVelocityRec;