summaryrefslogtreecommitdiff
path: root/drivers/input/mouse/hgpk.h
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2010-11-12 09:20:03 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-11-12 09:21:24 +0300
commita309cdc778b9eece59b34e9e1c26e41476dbbcd6 (patch)
tree40dba65fd78c058f8dd28d5972707ea4f09f0fdb /drivers/input/mouse/hgpk.h
parentc0dc8342656a1425c31dcc505072f2387f0f0c92 (diff)
downloadlinux-a309cdc778b9eece59b34e9e1c26e41476dbbcd6.tar.xz
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/mouse/hgpk.h b/drivers/input/mouse/hgpk.h
index bccdb26dca49..311c0e87fcbf 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...) \