In the code below I'm testing multi touch. When the first finger touch the screen, I get the ID of that finger and if I also touch the screen with a second finger, I get that ID as
Solution 1:
You didn't need for-loop
public final int getPointerId (int pointerIndex)
Parameters pointerIndex Raw index of pointer to retrieve. Value may be
from 0 (the first pointer that is down) to getPointerCount()-1.
First finger (event.getX(0),event.getY(0))
Second finger (event.getX(1),event.getY(1))
Post a Comment for "How Do I Get The Id Of The Moving Finger"