diff options
| author | 2011-07-21 19:16:41 -0700 | |
|---|---|---|
| committer | 2011-07-25 20:04:17 -0700 | |
| commit | 44e504e089b7483448c386741c5ee31d2c325400 (patch) | |
| tree | d2dba32f30f669dd4cbe0dedf48aa324cfd17fc8 /services/input/InputReader.cpp | |
| parent | ae65c17959042edd5f1b44e7653d1a775bbfceec (diff) | |
Drop hack for drivers that emit zero ABS_MT_TOUCH_MAJOR.
Bug: 5064702
When using Linux MT Protocol A, drivers are supposed to omit
fingers that go up and to send an empty sync with no fingers
(can be just an SYN_MT_REPORT / SYN_REPORT) when no fingers
remain.
This makes Android more compliant with the protocol standard.
Change-Id: I5775feb14ab7db015824a32b1e2c015da239385d
Diffstat (limited to 'services/input/InputReader.cpp')
| -rw-r--r-- | services/input/InputReader.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/services/input/InputReader.cpp b/services/input/InputReader.cpp index c9fac8194c01..3e041f32f116 100644 --- a/services/input/InputReader.cpp +++ b/services/input/InputReader.cpp @@ -5082,11 +5082,6 @@ void MultiTouchInputMapper::sync(nsecs_t when) { } if (fields & Accumulator::FIELD_ABS_MT_TOUCH_MAJOR) { - if (inSlot.absMTTouchMajor <= 0) { - // Some devices send sync packets with X / Y but with a 0 touch major to indicate - // a pointer going up. Drop this finger. - continue; - } outPointer.touchMajor = inSlot.absMTTouchMajor; } else { // Default touch area to 0 if absent. |