1
0
Fork 0
forked from fte/fteqw

fix an 'java.lang.IllegalArgumentException: pointerIndex out of

range' on multitouch events.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4134 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2012-10-18 21:46:50 +00:00
parent beedecc3e9
commit 60e9a3b3c6

View file

@ -435,8 +435,8 @@ public class FTEDroidActivity extends Activity
id = ((act&event.ACTION_POINTER_ID_MASK) >> event.ACTION_POINTER_ID_SHIFT);
x = event.getX(id);
y = event.getY(id);
id = event.getPointerId(id);
size = event.getSize(id);
id = event.getPointerId(id);
FTEDroidEngine.motion(1, id, x, y, size);
break;
case MotionEvent.ACTION_UP:
@ -444,8 +444,8 @@ public class FTEDroidActivity extends Activity
id = ((act&event.ACTION_POINTER_ID_MASK) >> event.ACTION_POINTER_ID_SHIFT);
x = event.getX(id);
y = event.getY(id);
id = event.getPointerId(id);
size = event.getSize(id);
id = event.getPointerId(id);
FTEDroidEngine.motion(2, id, x, y, size);
break;
case MotionEvent.ACTION_MOVE: