diff --git a/src/evdev.c b/src/evdev.c index 06ea83b..81a0bd5 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -375,7 +375,7 @@ EvdevProcessValuators(InputInfoPtr pInfo, int v[MAX_VALUATORS], int *num_v, for (i = 0; i < REL_CNT; i++) { int map = pEvdev->axis_map[i]; - if (pEvdev->delta[i] && map != -1) + if (map != -1) { v[map] = pEvdev->delta[i]; if (map < first)