diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-03-17 14:08:29 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-03-17 14:15:00 +1000 |
commit | d9809d7edd2be714a15115b990286554e2979fb6 (patch) | |
tree | e6276b491711004aec9c8e8073e3cfa644e130a0 /test/abs.c | |
parent | b11439a1763b5f210460b492dd4f47e973f90a3a (diff) |
Fix jumpy touchpads by updating old_vals only when reported by the device.
Remember whether ABS_X or ABS_Y were reported before the SYN event and only
update the old_vals[0, 1] if we got data for them.
Touchpads that reported pressure data before x/y would otherwise update
old_x/y with bogus values, leading to jumps when the first x/y coordinates
were actually reported.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test/abs.c')
0 files changed, 0 insertions, 0 deletions