0
votes

Coding inside the function -(void) ccTouchMoved:(UITouch *)touch withEvent:(UIEvent *)event receiving 2 touches in the "event" variable, how can one detect which touch has lived longer? i know i could use global variables and in the touchbegin just update these variables, but I rather do it the better way, if there is any.

2

2 Answers

1
votes

How about comparing the UITouch timestamp properties?

0
votes

Eventually I stored pointers to the touches. saving a timestamp manually, found no other way.