summaryrefslogtreecommitdiff
path: root/src/filter.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2015-03-06 14:18:59 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2015-03-10 07:09:23 +1000
commit7a54360ed3adbf2e49a894715ee864d2e7c357eb (patch)
tree306037772682d99339fa8682a7d04d02a678e159 /src/filter.h
parent3f7efc134e689811dd3dc062ecfb0084fc36ef33 (diff)
downloadlibinput-7a54360ed3adbf2e49a894715ee864d2e7c357eb.tar.gz
Move DEFAULT_MOUSE_DPI to evdev.h, provide a conversion macro
Ideally we want to specify various thresholds in mm, but not all touchpads set the hardware resolutions. Rather than conditions to check for resolutions everywhere, use a macro to give us a normalized value that we use for motion as well. 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, 0 insertions, 3 deletions
diff --git a/src/filter.h b/src/filter.h
index 9f6223d2..9e903303 100644
--- a/src/filter.h
+++ b/src/filter.h
@@ -28,9 +28,6 @@
#include <stdbool.h>
#include <stdint.h>
-/* The HW DPI rate we normalize to before calculating pointer acceleration */
-#define DEFAULT_MOUSE_DPI 1000
-
struct motion_params {
double dx, dy; /* in units/ms @ DEFAULT_MOUSE_DPI resolution */
};