views:

15

answers:

0

I'm confused as to how to get historical data on two touch locations on a touch screen. In the MotionEvent class it seems like I can only get one history size using the getHistorySize() method. How do I know what in that history belongs to my primary touch location, and what belongs to my secondary touch location.

The MotionEvent class also provides a way to get touch coordinates based on the pointer that is down though the getHistorical(int pointerIndex, int pos) method.

This is confusing the SDK doesn't really explain how make sure you are picking up the correct historical data.

Any ideas?