Sending tap gestures to touchDown

Hi, how can I send the received tap events to the touch down of my app?

  
  
  
 tapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)];  
 [self.mapView addGestureRecognizer:tapGestureRecognizer];  
  
  
-(void)handleTap:(UIGestureRecognizer *) gr{  
    
    if([gr state] == UIGestureRecognizerStateRecognized){  
        NSLog(@"tap!");  
        tapping = TRUE;  
        startLocation = [gr locationInView:self.mapView];  
    }  
  
}  
  
  

I was thinking something like:

  
ofxiPhoneApp::touchDown(mapViewController.startLocation.x, mapViewController.startLocation.y, 1);  

But that doesn’t work.

Hi, did you check the code snippits in this thread already?

http://forum.openframeworks.cc/t/gesture-recognizers-iphone-os-3.2-working-in-of/4244/1

Yes i’ve seen it. But I want to send the tap gesture from one layer and send it to the eaglView. So I have to catch it with using the code above and send it to the main touchdown input in the sketch.

I’ve mentioned that there is allot of difference between the touchdown and a tap gesture.

Next to that i’ve mentioned that in IOS 6.1 Apple has done allot of eaglView enhancements. Allot of the previous problems are gone now. :slight_smile: :slight_smile: