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:
parent
beedecc3e9
commit
60e9a3b3c6
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue