Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44e504e0 authored by Jeff Brown's avatar Jeff Brown
Browse files

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
parent ae65c179
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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.