Android: Add missing check for lifted pointer with d-pad

This commit is contained in:
Connor McLaughlin 2021-04-06 02:26:41 +10:00
parent 2ed482132d
commit 0e637a093a
1 changed files with 3 additions and 0 deletions

View File

@ -576,6 +576,9 @@ public class TouchscreenControllerView extends FrameLayout {
boolean pressed = false;
for (int i = 0; i < pointerCount; i++) {
if (i == liftedPointerIndex)
continue;
final int x = (int) event.getX(i);
final int y = (int) event.getY(i);
if (rect.contains(x, y)) {