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: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1255>
This commit is contained in:
Peter Hutterer 2025-07-02 10:56:17 +10:00 committed by Marge Bot
parent dc48d28d74
commit 06d8750504

View file

@ -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++;