From 06d875050410f863f3c2a7a04ddccb0687f93b39 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 2 Jul 2025 10:56:17 +1000 Subject: [PATCH] test: write pad events with a SYN_REPORT 0 The previous loop wrote whatever ring/strip value into the SYN_REPORT event, causing frames with e.g. EV_SYN SYN_REPORT 7. Part-of: --- test/litest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/litest.c b/test/litest.c index de26d2e9..b419f440 100644 --- a/test/litest.c +++ b/test/litest.c @@ -3403,6 +3403,8 @@ static void litest_pad_events(struct litest_device *d, struct input_event *evs, double value) { while (evs && (int16_t)evs->type != -1 && (int16_t)evs->code != -1) { + if (evs->type == EV_SYN && evs->code == SYN_REPORT) + value = 0; value = auto_assign_pad_value(d, evs, value); litest_event(d, evs->type, evs->code, value); evs++;