Skip to content

Commit 6d3d7d3

Browse files
committed
input-evdev-raw: fix evdev event reading
1 parent fa55784 commit 6d3d7d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/input-evdev-raw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ static int ts_input_read_mt(struct tslib_module_info *inf,
799799
i->buf[total][i->slot].touch_major = ev.value;
800800
i->buf[total][i->slot].tv = ev.time;
801801
i->buf[total][i->slot].valid |= TSLIB_MT_VALID;
802-
if (i->ev[it].value == 0)
802+
if (ev.value == 0)
803803
i->buf[total][i->slot].pressure = 0;
804804
break;
805805
case ABS_MT_WIDTH_MAJOR:

0 commit comments

Comments
 (0)