fix multitouch release problem
This commit is contained in:
parent
40c0e1993a
commit
bc3afc8ed8
1 changed files with 2 additions and 1 deletions
|
|
@ -747,7 +747,8 @@ public class Godot extends Activity implements SensorEventListener, IDownloaderC
|
|||
//}
|
||||
} break;
|
||||
case MotionEvent.ACTION_POINTER_UP: {
|
||||
int pointer_idx = event.getActionIndex();
|
||||
final int indexPointUp = event.getAction() >> MotionEvent.ACTION_POINTER_INDEX_SHIFT;
|
||||
final int pointer_idx = event.getPointerId(indexPointUp);
|
||||
GodotLib.touch(4,pointer_idx,evcount,arr);
|
||||
//System.out.printf("%d - s.up at: %f,%f\n",pointer_idx, event.getX(pointer_idx),event.getY(pointer_idx));
|
||||
} break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue