diff options
author | Daniel Drake <dsd@laptop.org> | 2010-11-11 22:20:03 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-11-11 22:21:24 -0800 |
commit | a309cdc778b9eece59b34e9e1c26e41476dbbcd6 (patch) | |
tree | 40dba65fd78c058f8dd28d5972707ea4f09f0fdb /drivers/input/mouse/hgpk.h | |
parent | c0dc8342656a1425c31dcc505072f2387f0f0c92 (diff) | |
download | op-kernel-dev-a309cdc778b9eece59b34e9e1c26e41476dbbcd6.zip op-kernel-dev-a309cdc778b9eece59b34e9e1c26e41476dbbcd6.tar.gz |
Input: hgpk - extend jumpiness detection
In addition to forcing recalibrations upon detection of cursor jumps (and
performing them quicker than before), detect and discard errant 'jump'
packets caused by a firmware bug, which are then repeated with each one
being approximately half the delta of the one previously (as if it is
averaging out)
Based on original work by Paul Fox.
Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/mouse/hgpk.h')
-rw-r--r-- | drivers/input/mouse/hgpk.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/mouse/hgpk.h b/drivers/input/mouse/hgpk.h index bccdb26..311c0e8 100644 --- a/drivers/input/mouse/hgpk.h +++ b/drivers/input/mouse/hgpk.h @@ -42,6 +42,8 @@ struct hgpk_data { struct delayed_work recalib_wq; int abs_x, abs_y; int dupe_count; + int xbigj, ybigj, xlast, ylast; /* jumpiness detection */ + int xsaw_secondary, ysaw_secondary; /* jumpiness detection */ }; #define hgpk_dbg(psmouse, format, arg...) \ |