diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2014-07-24 13:18:56 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-08-04 20:21:03 +1000 |
commit | d1cc84265b7132e7b4e836656e42051a712d6b14 (patch) | |
tree | 1a1043c2ce2dfe8d281f1524084697694ce41c19 /test/litest-int.h | |
parent | 22e86f932282ce623736bc59cc243f8a87759f68 (diff) | |
download | libinput-d1cc84265b7132e7b4e836656e42051a712d6b14.tar.gz |
test: add a semi-mt Alps test device
Provides the bounding box only, with slot 0 always being the upper/left, slot
1 being the lower-right touch. This needs to use the touch_down etc. litest
interfaces, which are now widened to double (leftover from 489630f58) and a
device-specific private pointer in the litest device.
New device feature for litest: LITEST_SEMI_MT
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/litest-int.h b/test/litest-int.h index 581930b8..95bc2483 100644 --- a/test/litest-int.h +++ b/test/litest-int.h @@ -72,8 +72,8 @@ struct litest_test_device { }; struct litest_device_interface { - void (*touch_down)(struct litest_device *d, unsigned int slot, int x, int y); - void (*touch_move)(struct litest_device *d, unsigned int slot, int x, int y); + void (*touch_down)(struct litest_device *d, unsigned int slot, double x, double y); + void (*touch_move)(struct litest_device *d, unsigned int slot, double x, double y); void (*touch_up)(struct litest_device *d, unsigned int slot); /** |