I'm using a UIGestureRecognizer from here: Tap pressure strength detection using accelerometer
I'm adding the recognizer to the entire view like this:
CPBPressureTouchGestureRecognizer *recognizer = [[CPBPressureTouchGestureRecognizer alloc] initWithTarget:self action:@selector(tapped)];
[self.view addGestureRecognizer:recognizer];
-(void)tapped {
NSLog(@"number of touches: %d", [recognizer numberOfTouches]);
}
It works fine as far as showing the correct number of touches in tapped() if I tap my finger slow on the screen. If I tap very quickly, it periodically registers 0 number of touches even though it calls the tapped() method for every touch.
Any idea why it would not be able to consistently receive the touch data?
Thanks!