At the moment I have one scene which dispatches touch events. It works fine most of the time but for some touches ccTouchEnded is not called until the user starts another touch. Here is the code I am using:
// initialization:
[[CCTouchDispatcher sharedDispatcher] addTargetedDelegate:self priority:0 swallowsTouches:YES];
// dispatcher methods:
- (BOOL)ccTouchBegan:(UITouch *)touch withEvent:(UIEvent *)event
{
NSLog(@"Touch Began:%@", touch);
return YES;
}
- (void)ccTouchMoved:(UITouch *)touch withEvent:(UIEvent *)event
{
//NSLog(@"Touch Moved:%@", touch);
}
- (void)ccTouchEnded:(UITouch *)touch withEvent:(UIEvent *)event
{
NSLog(@"Touch Ended:%@", touch);
}
- (void)ccTouchCancelled:(UITouch *)touch withEvent:(UIEvent *)event
{
NSLog(@"Touch Cancelled:%@", touch);
}
Am I doing something wrong or is this a known issue ?