I need to know if the user is touching the screen (with 1 or more fingers)
I have now this code:
- (void) ccTouchesBegan: (NSSet *)touches withEvent: (UIEvent *)event {
bTouched=true;
}
- (void) ccTouchesEnded: (NSSet *)touches withEvent: (UIEvent *)event {
bTouched=false;
}
This work fine if the user use only one finger but if you put 2 fingers and remove only one bTouched=true :-(
My second try is this one:
- (void) ccTouchesEnded: (NSSet *)touches withEvent: (UIEvent *)event {
bPulsada= (([[event allTouches] count])>1);
}
Is this the easy way or maybe there is a nice way to know it that i don't know