summaryrefslogtreecommitdiff
path: root/src/filter.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2014-11-28 10:08:02 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2014-12-02 10:16:31 +1000
commit7e3cc15819f5599ee2014dc8381ef1bcb4c2ac73 (patch)
treea3a9ff9b7a60fb9220b47c1904556b00e826b66a /src/filter.h
parent4f84bad9eb5ee1f4ef2928d928016d9daeeaf9e1 (diff)
downloadlibinput-7e3cc15819f5599ee2014dc8381ef1bcb4c2ac73.tar.gz
Move DEFAULT_MOUSE_DPI to filter.h
The filter code is what relies on some default dpi configuration to apply pointer acceleration and expects the input coordinates to be pre-scaled to that resolution. Let's move the define here so we can use it from the touchpad code too. No functional changes. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src/filter.h')
-rw-r--r--src/filter.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/filter.h b/src/filter.h
index 9b126183..e96212a3 100644
--- a/src/filter.h
+++ b/src/filter.h
@@ -28,6 +28,9 @@
#include <stdbool.h>
#include <stdint.h>
+/* The HW DPI rate we normalize to before calculating pointer acceleration */
+#define DEFAULT_MOUSE_DPI 400
+
struct motion_params {
double dx, dy; /* in units/ms @ DEFAULT_MOUSE_DPI resolution */
};