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

Commit 85598ce5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "redirect to call assignPointerIds if there is id < 0 case"

parents 215d7ab7 1a632def
Loading
Loading
Loading
Loading
+24 −23
Original line number Diff line number Diff line
@@ -6644,6 +6644,7 @@ void MultiTouchInputMapper::syncTouch(nsecs_t when, RawState* outState) {
    size_t inCount = mMultiTouchMotionAccumulator.getSlotCount();
    size_t outCount = 0;
    BitSet32 newPointerIdBits;
    mHavePointerIds = true;

    for (size_t inIndex = 0; inIndex < inCount; inIndex++) {
        const MultiTouchMotionAccumulator::Slot* inSlot =
@@ -6688,7 +6689,7 @@ void MultiTouchInputMapper::syncTouch(nsecs_t when, RawState* outState) {
        outPointer.isHovering = isHovering;

        // Assign pointer id using tracking id if available.
        mHavePointerIds = true;
        if (mHavePointerIds) {
            int32_t trackingId = inSlot->getTrackingId();
            int32_t id = -1;
            if (trackingId >= 0) {
@@ -6714,7 +6715,7 @@ void MultiTouchInputMapper::syncTouch(nsecs_t when, RawState* outState) {
                outState->rawPointerData.markIdBit(id, isHovering);
                newPointerIdBits.markBit(id);
            }

        }
        outCount += 1;
    }