Hedgeroid: Fixed multitouch breakage
authorMedo <smaxein@googlemail.com>
Tue, 17 Jul 2012 23:06:20 +0200
changeset 7334 66a10ae88457
parent 7332 3f2e130f9715
child 7336 f821f7d727b7
Hedgeroid: Fixed multitouch breakage
project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/SDLActivity.java
--- a/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/SDLActivity.java	Tue Jul 17 22:27:16 2012 +0200
+++ b/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/SDLActivity.java	Tue Jul 17 23:06:20 2012 +0200
@@ -580,7 +580,7 @@
 	// Touch events
 	public boolean onTouch(View v, MotionEvent event) {
 		final int action = event.getAction() & MotionEvent.ACTION_MASK;
-		final int actionPointerIndex = event.getAction() & MotionEvent.ACTION_POINTER_ID_MASK;		
+		final int actionPointerIndex = (event.getAction() & MotionEvent.ACTION_POINTER_ID_MASK) >> MotionEvent.ACTION_POINTER_INDEX_SHIFT;		
 
 		if (action == MotionEvent.ACTION_MOVE) {
 			// TODO send motion to every pointer if its position has