summaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/hgpk.h
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2010-11-11 22:20:03 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-11-11 22:21:24 -0800
commita309cdc778b9eece59b34e9e1c26e41476dbbcd6 (patch)
tree40dba65fd78c058f8dd28d5972707ea4f09f0fdb /drivers/input/mouse/hgpk.h
parentc0dc8342656a1425c31dcc505072f2387f0f0c92 (diff)
downloadop-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.h2
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...) \
OpenPOWER on IntegriCloud