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>
This commit is contained in:

committed by
Dmitry Torokhov

parent
c0dc834265
commit
a309cdc778
@@ -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...) \
|
||||
|
Reference in New Issue
Block a user