Multitouch! How do I keep track of which fingers?
If I do a multitouch - say 3 fingers are touching the screen. I can easily find out how many fingers that are touching and the x,y position of those three fingers. But when the user lifts one finger and only two fingers are touching, how do I know which finger he lifted?
Comments
Then when touchcount = 2 test the GS touch attributes against your mytouch attributes and see which one of the GS touches doesn't have a corresponding mytouch attributes.
hope this makes sense. it should work.
I constrain the three first GS X and Y touch positions to my own x and y attributes, and when touch is released ( a finger is released ) I set all my x and y attributes to -1.
Then I compare the GS touch X and Y to my x and y attributes (which all are of course set to -1).
And that doesn't work of course, since thet are all set to -1.