From 2218da2f311d30b87d835e16c1c5e2f672993bae Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 16 Jan 2024 17:20:59 +1000 Subject: [PATCH] test: fix a wrong value for the auto-assigned BTN_TOOL This was actually passed through: litest debug event19 - 0.000 EV_KEY BTN_TOOL_PEN -2147483648 --- test/litest-device-aiptek-tablet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/litest-device-aiptek-tablet.c b/test/litest-device-aiptek-tablet.c index 7e55d7de..470ba605 100644 --- a/test/litest-device-aiptek-tablet.c +++ b/test/litest-device-aiptek-tablet.c @@ -32,7 +32,7 @@ static struct input_event proximity_in[] = { { .type = EV_ABS, .code = ABS_Y, .value = LITEST_AUTO_ASSIGN }, /* Note: this device does not send tilt, despite claiming it has it */ { .type = EV_ABS, .code = ABS_PRESSURE, .value = LITEST_AUTO_ASSIGN }, - { .type = EV_KEY, .code = LITEST_BTN_TOOL_AUTO, .value = LITEST_AUTO_ASSIGN }, + { .type = EV_KEY, .code = LITEST_BTN_TOOL_AUTO, .value = 1 }, { .type = EV_SYN, .code = SYN_REPORT, .value = 0 }, { .type = -1, .code = -1 }, };