From eb085bddec76cb91139b0f184107bc05c2a0ed65 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 6 Feb 2020 18:51:09 +1000 Subject: [PATCH] test: mark the tablets that require forced prox out as such Because certain things are hard to test when you have to guess whether a tablet has forced proximity out or not. Currently unused, see future patches. Signed-off-by: Peter Hutterer --- test/litest-device-aiptek-tablet.c | 2 +- test/litest-device-huion-pentablet.c | 2 +- test/litest-device-uclogic-tablet.c | 2 +- test/litest.h | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/litest-device-aiptek-tablet.c b/test/litest-device-aiptek-tablet.c index bac3ecdc..f2bc43e9 100644 --- a/test/litest-device-aiptek-tablet.c +++ b/test/litest-device-aiptek-tablet.c @@ -141,7 +141,7 @@ static int events[] = { TEST_DEVICE("aiptek-tablet", .type = LITEST_AIPTEK, - .features = LITEST_TABLET | LITEST_HOVER, + .features = LITEST_TABLET | LITEST_HOVER | LITEST_FORCED_PROXOUT, .interface = &interface, .name = "Aiptek", diff --git a/test/litest-device-huion-pentablet.c b/test/litest-device-huion-pentablet.c index fbf1ae8e..976d6708 100644 --- a/test/litest-device-huion-pentablet.c +++ b/test/litest-device-huion-pentablet.c @@ -90,7 +90,7 @@ static int events[] = { TEST_DEVICE("huion-tablet", .type = LITEST_HUION_TABLET, - .features = LITEST_TABLET | LITEST_HOVER, + .features = LITEST_TABLET | LITEST_HOVER | LITEST_FORCED_PROXOUT, .interface = &interface, .name = "HUION PenTablet Pen", diff --git a/test/litest-device-uclogic-tablet.c b/test/litest-device-uclogic-tablet.c index 9b6c399d..f9773add 100644 --- a/test/litest-device-uclogic-tablet.c +++ b/test/litest-device-uclogic-tablet.c @@ -88,7 +88,7 @@ static int events[] = { TEST_DEVICE("uclogic-tablet", .type = LITEST_UCLOGIC_TABLET, - .features = LITEST_TABLET | LITEST_HOVER, + .features = LITEST_TABLET | LITEST_HOVER | LITEST_FORCED_PROXOUT, .interface = &interface, .name = "uclogic PenTablet Pen", diff --git a/test/litest.h b/test/litest.h index 20a3c921..a6728351 100644 --- a/test/litest.h +++ b/test/litest.h @@ -340,6 +340,7 @@ enum litest_device_type { #define LITEST_TOOL_MOUSE bit(29) #define LITEST_DIRECT bit(30) #define LITEST_TOTEM bit(31) +#define LITEST_FORCED_PROXOUT bit(32) /* this is a semi-mt device, so we keep track of the touches that the tests * send and modify them so that the first touch is always slot 0 and sends