Skip to content
Snippets Groups Projects
Commit 05e882f8 authored by Jeremy Huddleston's avatar Jeremy Huddleston Committed by Dmitry Torokhov
Browse files

Input: appletouch - improve finger detection


The appletouch driver is prone to reporting multiple fingers when only
one is pressing.  The appletouch driver queries an array of pressure
sensors and counts local maxima in pressure to determine the number of
fingers.  It just does this on the raw values, so a data stream like:

0 100 250 300 299 300 250 100 0

actually registers as 2 fingers.

This patch updates the logic to ignore small dips in pressure that are
less than the threshold.

Signed-off-by: default avatarJeremy Huddleston <jeremyhu@freedesktop.org>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent a8629528
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment