summaryrefslogtreecommitdiff
path: root/src/evdev-mt-touchpad.h
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2014-05-24 16:53:45 +0200
committerJonas Ådahl <jadahl@gmail.com>2014-05-29 13:06:36 +0200
commite18e9d56a8afe0268fcab09a6ef11d359bf0bbd5 (patch)
treeb5cfbb870c8a725680a4790acfadf858ee48f3e0 /src/evdev-mt-touchpad.h
parent505e92b1a5fed7cbd05d3de3b5c09bb4fc950cc1 (diff)
downloadlibinput-e18e9d56a8afe0268fcab09a6ef11d359bf0bbd5.tar.gz
touchpad: Make anisotropic motion deltas isotropic
The x and y absolute axis may have different resolutions, meaning 1 unit long motion delta on one axis is not physically as long as 1 unit motion delta on the other axis. In order to make these anisotropic input motion deltas output as isotropic motion deltas, apply scaling to one of the axis making it have the same dimension as the other, before passing it through the motion filter which assumes all deltas are isotropic. https://bugs.freedesktop.org/show_bug.cgi?id=79056 Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src/evdev-mt-touchpad.h')
-rw-r--r--src/evdev-mt-touchpad.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/evdev-mt-touchpad.h b/src/evdev-mt-touchpad.h
index 41e3ca43..65391495 100644
--- a/src/evdev-mt-touchpad.h
+++ b/src/evdev-mt-touchpad.h
@@ -151,6 +151,9 @@ struct tp_dispatch {
double constant_factor;
double min_factor;
double max_factor;
+
+ double x_scale_coeff;
+ double y_scale_coeff;
} accel;
struct {