Android: Add missing check for lifted pointer with d-pad
This commit is contained in:
parent
2ed482132d
commit
0e637a093a
|
@ -576,6 +576,9 @@ public class TouchscreenControllerView extends FrameLayout {
|
||||||
|
|
||||||
boolean pressed = false;
|
boolean pressed = false;
|
||||||
for (int i = 0; i < pointerCount; i++) {
|
for (int i = 0; i < pointerCount; i++) {
|
||||||
|
if (i == liftedPointerIndex)
|
||||||
|
continue;
|
||||||
|
|
||||||
final int x = (int) event.getX(i);
|
final int x = (int) event.getX(i);
|
||||||
final int y = (int) event.getY(i);
|
final int y = (int) event.getY(i);
|
||||||
if (rect.contains(x, y)) {
|
if (rect.contains(x, y)) {
|
||||||
|
|
Loading…
Reference in New Issue