title: identified multi touch pointer in action_move
body: <p>i am a student developing an air hockey android games.
  i am having a problem with understanding multi touch.
  i just learns about ACTION_DOWN, ACTION_POINTER_DOWN etc.</p>
  
  <p>but by problem is at ACTION_MOVE.
  i create 2 sprite for 2 player.1st sprite will move where my 1st finger go, but my 2nd sprite doesn't move where my 2nd finger move.</p>
  
  <p>my question is, how i want to identified which finger is moving in ACTION_MOVE? i have tried to use getPointerId(index), but i am not understand how to use it because the index is changing if the 1st finger leave the screen</p>
  
  <pre><code>switch (action &amp; MotionEvent.ACTION_MASK) {
      case MotionEvent.ACTION_DOWN: {
       break;
  }
  case MotionEvent.ACTION_POINTER_DOWN: {
      break;
  }
  case MotionEvent.ACTION_UP: {
       break;
  }
  case MotionEvent.ACTION_POINTER_UP: {
      break;
  }
  case MotionEvent.ACTION_MOVE: {
          if((int)event.getPointerId(index) == 0){     //i know this IF statement is wrong, what should i do?
           player1.setX((int)event.getX());   //player1 &amp; player2 is a sprite object
           player1.setY((int)event.getY());
          }
          if((int)event.getPointerId(index) == 1){
           player1.setX((int)event.getX());
           player1.setY((int)event.getY());
          }
  }
  </code></pre>
  
  <p>}</p>