diff options
-rw-r--r-- | src/eventcomm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eventcomm.c b/src/eventcomm.c index 0f0b499..ce26934 100644 --- a/src/eventcomm.c +++ b/src/eventcomm.c @@ -188,8 +188,8 @@ InitializeTouch(InputInfoPtr pInfo) * and Y. */ valuator_mask_set(proto_data->last_mt_vals[i], 0, 0); valuator_mask_set(proto_data->last_mt_vals[i], 1, 0); - for (j = 4; j < priv->num_mt_axes; j++) - valuator_mask_set(proto_data->last_mt_vals[i], j, 0); + for (j = 0; j < priv->num_mt_axes; j++) + valuator_mask_set(proto_data->last_mt_vals[i], 4 + j, 0); } proto_data->open_slots = malloc(num_slots(proto_data) * sizeof(int)); |