关于触摸事件的问题,长按事件处理过程中触发了单击事件

详细问题见下面链接,求高手解决,感谢万分

http://blog.csdn.net/wxc734809128/article/details/21291855

....在苹果官方库里面手势是有一个方法的:

// create a relationship with another gesture recognizer that will prevent this gesture's actions from being called until otherGestureRecognizer transitions to UIGestureRecognizerStateFailed

// if otherGestureRecognizer transitions to UIGestureRecognizerStateRecognized or UIGestureRecognizerStateBegan then this recognizer will instead transition to UIGestureRecognizerStateFailed

// example usage: a single tap may require a double tap to fail

  • (void)requireGestureRecognizerToFail:(UIGestureRecognizer *)otherGestureRecognizer;
<p> </p>
不知道cocos2d-x是怎么整的,你可以参考下</p>

3Q我看看