Some additional interesting tidbits:
in MyCCLayer.mm -- I added gestures, rotate and one finger tapping, those seem to work fine, but still no matter what I do I have only single touch (except the rotation)
-(id) init
...
// gesture regognition for rotation gesture
UIRotationGestureRecognizer *rotationGestureRecognizer = [[[UIRotationGestureRecognizer alloc] initWithTarget:self action:@selector(handleRotationGesture:)] autorelease];
[[[CCDirector sharedDirector] openGLView] addGestureRecognizer:rotationGestureRecognizer];
UITapGestureRecognizer *oneFingerTwoTaps =
[[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleOneFingerTwoTaps:)] autorelease];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(orientationChangedInTemplate:) name:@"UIDeviceOrientationDidChangeNotification" object:nil];
// Set required taps and number of touches
[(UITapGestureRecognizer *)oneFingerTwoTaps setNumberOfTapsRequired:2];
[(UITapGestureRecognizer *)oneFingerTwoTaps setNumberOfTouchesRequired:1];
[[[CCDirector sharedDirector] openGLView] addGestureRecognizer:oneFingerTwoTaps];
-(void) ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
if ([touches count] == 1) {
if (DEBUG_LOG_EVENTS) NSLog(@"ccTouchesBegan -- single touch");
}
else if ([touches count] == 2) {
if (DEBUG_LOG_EVENTS) NSLog(@"ccTouchesBegan -- two touches");
}
}
And everything works fine on the ipad, multitouch, pinch to zoom, rotation, etc, but everything EXCEPT multitouch works on the ipod/iphone