summaryrefslogtreecommitdiff
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2010-11-11 22:20:02 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-11-11 22:21:19 -0800
commitc0dc8342656a1425c31dcc505072f2387f0f0c92 (patch)
tree042c9a331a54ad2095688f01dc5602ae96889dbc /drivers/macintosh
parentca94ec43540ce5d93fd30a3bf88321b6f11ed51a (diff)
Input: hgpk - rework spew detection
The old implementation of spew detection simply tracked the overall position delta of the cursor over every 100 packets. We found that this causes occasional false positives in spew detection, and also that the conditions of the spewy packets are perhaps more fixed than we once thought. Rework the spew detection to look for packets of specific small delta, and only recalibrating if the overall movement delta stays within expected bounds. Also discard duplicate packets in the advanced mode, which appear to be very common. If we don't, the spew detection kicks in far too early. If we get a large spew of duplicates, request a recalibration straight up. Based on earlier work by Paul Fox. Signed-off-by: Daniel Drake <dsd@laptop.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/macintosh')
0 files changed, 0 insertions, 0 deletions