diff --git a/engine/src/android/com/jme3/input/android/AndroidInput.java b/engine/src/android/com/jme3/input/android/AndroidInput.java index 8a9278e6f..07468de49 100644 --- a/engine/src/android/com/jme3/input/android/AndroidInput.java +++ b/engine/src/android/com/jme3/input/android/AndroidInput.java @@ -264,7 +264,7 @@ public class AndroidInput implements case MotionEvent.ACTION_MOVE: // Convert all pointers into events for (int p = 0; p < event.getPointerCount(); p++) { - lastPos = lastPositions.get(p); + lastPos = lastPositions.get(event.getPointerId(p)); if (lastPos == null) { lastPos = new Vector2f(event.getX(p), view.getHeight() - event.getY(p)); lastPositions.put(event.getPointerId(p), lastPos);