summaryrefslogtreecommitdiff
path: root/test/litest-int.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2014-07-18 16:01:10 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2014-07-21 08:56:10 +1000
commit489630f58b2ac099bf235efc5dfd9cd854c223ee (patch)
tree4840469c42593b74d74cc0a3deee14720cfbaafa /test/litest-int.h
parent8665e3678ab07b7071c70d75b137e0528be70e84 (diff)
test: widen litest to use doubles for scaled variables
Using a 0-100% range is useful but in some cases we need events with finer than 1% granularity. And fix up the two-finger test that now fails. This was a bug in the test anyway, the dx/dy supplied here was 1% of the touchpad width. Confined to integers this meant we only ever had the touch down, then the single move by 1%. That caused two events - not enough to satisfy tp_estimate_delta, so we always had a delta of 0/0 regardless of the size of the move. Now with doubles this fails, so drop it to 0.1% instead, which is small enough on all touchpads we currently have. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'test/litest-int.h')
-rw-r--r--test/litest-int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/litest-int.h b/test/litest-int.h
index 19e6e68d..581930b8 100644
--- a/test/litest-int.h
+++ b/test/litest-int.h
@@ -93,7 +93,7 @@ struct litest_device_interface {
};
void litest_set_current_device(struct litest_device *device);
-int litest_scale(const struct litest_device *d, unsigned int axis, int val);
+int litest_scale(const struct litest_device *d, unsigned int axis, double val);
void litest_generic_device_teardown(void);
#endif