test: fix the wacom bamboo touch device
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 8 May 2019 03:15:50 +0000 (13:15 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 8 May 2019 04:09:28 +0000 (14:09 +1000)
Missing buttons caused it to fail sanity checks in some cases.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/litest-device-wacom-bamboo-2fg-finger.c

index 68e9068074229280a7776929ba8411387a30e6b3..b857c9c2ac4a44864af106f633700f396d1796a7 100644 (file)
@@ -71,8 +71,10 @@ static struct input_id input_id = {
 };
 
 static int events[] = {
+       EV_KEY, BTN_TOOL_FINGER,
        EV_KEY, BTN_TOUCH,
-       INPUT_PROP_MAX, INPUT_PROP_DIRECT,
+       EV_KEY, BTN_TOOL_DOUBLETAP,
+       INPUT_PROP_MAX, INPUT_PROP_POINTER,
        -1, -1,
 };
 
@@ -87,7 +89,7 @@ static const char udev_rule[] =
 
 TEST_DEVICE("wacom-bamboo-2fg-finger",
        .type = LITEST_WACOM_BAMBOO_2FG_FINGER,
-       .features = LITEST_TOUCH,
+       .features = LITEST_TOUCHPAD,
        .interface = &interface,
 
        .name = "Wacom Bamboo 2F 4x5 Finger",