diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2020-09-11 09:54:24 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2020-09-22 17:35:41 +1000 |
commit | d35f1319de09ea478f93c0b93008c7f2392214c7 (patch) | |
tree | 8041dad0b7c4a79ab4ee9f66ee024c806eca90ab /test/litest-int.h | |
parent | 5cda7dfa1baf5dfe9b11cdb96cc0aff0e15e5862 (diff) |
test: set the elan test device to always double up on tool bits
This is the device from
https://gitlab.freedesktop.org/libinput/libinput/-/issues/259 which sets
BTN_TOOL_PEN in addition to the real tool. Integrate this into the test device
proper so it always does this to catch various outliers.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test/litest-int.h')
-rw-r--r-- | test/litest-int.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/litest-int.h b/test/litest-int.h index 5bc62d9c..06717d1c 100644 --- a/test/litest-int.h +++ b/test/litest-int.h @@ -114,6 +114,12 @@ struct litest_device_interface { struct input_event *tablet_proximity_out_events; struct input_event *tablet_motion_events; + bool (*tablet_proximity_in)(struct litest_device *d, + unsigned int tool_type, + double x, double y, + struct axis_replacement *axes); + bool (*tablet_proximity_out)(struct litest_device *d, unsigned int tool_type); + /** * Pad events, LITEST_AUTO_ASSIGN is allowed on event values * for ABS_WHEEL |