Fixed issue with handling Multi-Touch not tracking MOVE for second finger when first finger is lifted. Thanks to kumasao.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10061 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
ab5282fb2d
commit
e21f22e6dc
@ -264,7 +264,7 @@ public class AndroidInput implements
|
|||||||
case MotionEvent.ACTION_MOVE:
|
case MotionEvent.ACTION_MOVE:
|
||||||
// Convert all pointers into events
|
// Convert all pointers into events
|
||||||
for (int p = 0; p < event.getPointerCount(); p++) {
|
for (int p = 0; p < event.getPointerCount(); p++) {
|
||||||
lastPos = lastPositions.get(p);
|
lastPos = lastPositions.get(event.getPointerId(p));
|
||||||
if (lastPos == null) {
|
if (lastPos == null) {
|
||||||
lastPos = new Vector2f(event.getX(p), view.getHeight() - event.getY(p));
|
lastPos = new Vector2f(event.getX(p), view.getHeight() - event.getY(p));
|
||||||
lastPositions.put(event.getPointerId(p), lastPos);
|
lastPositions.put(event.getPointerId(p), lastPos);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user