commit | aea1b3b24ee895c24ed25c5706bc2f390b41689d | [log] [tgz] |
---|---|---|
author | Amith Yamasani <yamasani@google.com> | Wed Oct 21 16:53:31 2009 -0700 |
committer | Amith Yamasani <yamasani@google.com> | Tue Oct 27 10:27:49 2009 -0700 |
tree | 50eb94bf06934a19de28873b2b9efb305096ec55 | |
parent | a2058e431736810503bc85fadec31a8e0bfcad95 [diff] |
Disambiguation between multiple pointers and swipe gestures. Sometimes quickly touching the screen with two fingers will result in the firmware thinking one finger moved very quickly. This code tries to identify the difference between the two based on velocity of the last N points versus the velocity of the last M points and figure out if there was mostly acceleration or a sudden deceleration. It's still not perfect and very dependent on the touch hardware.