getting touch number
Hi I've seen a couple of old threads but nothing that really answers this.
Example problem
1st touch registers touch1.X=200, touch1.Y= 200, touch count=1
2nd touch registers touch2.X=600, touch2.Y=600, touch count=2
1st touch is released = this changes touch count back to 1, but touch positions data remains.
(or it could be 2nd touch is released)
I now know there is one touch but I need to find it's co-ordinates and I don't know whether to look at touch1 or touch2 since they both hold position data.
I was expecting to see position cleared to zero or null when released.
Can anyone help please?
Thanks, Philip.
Example problem
1st touch registers touch1.X=200, touch1.Y= 200, touch count=1
2nd touch registers touch2.X=600, touch2.Y=600, touch count=2
1st touch is released = this changes touch count back to 1, but touch positions data remains.
(or it could be 2nd touch is released)
I now know there is one touch but I need to find it's co-ordinates and I don't know whether to look at touch1 or touch2 since they both hold position data.
I was expecting to see position cleared to zero or null when released.
Can anyone help please?
Thanks, Philip.
Comments
kipper