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

Skip to content
Commit 5b9766d9 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Simplify pointer handling code in InputDispatcher

Some of the code in dispatcher can be simplified.

Some fixes here:
1. Use 'removeTouchingPointer' instead of implementing the same logic
   from scratch.
2. Remove `addTouchingPointer` API since there's a similar API called
   'addTouchingPointers'.
3. Use MotionEvent::getActionIndex instead of a custom function that
   does the same thing.

Bug: 211379801
Test: TEST=inputflinger_tests; m $TEST && $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST
Change-Id: I1fec64be6e9da11199c55a96cac17ee5e6c14b82
parent d38a1e00
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment