From 44e504e089b7483448c386741c5ee31d2c325400 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Thu, 21 Jul 2011 19:16:41 -0700 Subject: [PATCH] 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 --- services/input/InputReader.cpp | 5 ----- 1 file changed, 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. -- 2.11.0