mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 04:30:06 +01:00
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:
parent
dc48d28d74
commit
06d8750504
1 changed files with 2 additions and 0 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue