hi,
cocos2d has a feature of GCGestureRecognizer and cocos2d-x doesn’t now.
It will be supported in the future ?
best regards.
hi,
cocos2d has a feature of GCGestureRecognizer and cocos2d-x doesn’t now.
It will be supported in the future ?
best regards.
Are you talking about UIGestureRecognizer from ios sdk?
ya, cocos2d-x will implement GestureRecognizer class by using C++,such like UIGestureRecognizer ?
After reading apple’s document, I find it a bit hard to implement it in cocos2d-x framework. For 3 reasons:
UIGestureRecognizer is not only a class, but also inherited by
UITapGestureRecognizer
UIPinchGestureRecognizer
UIRotationGestureRecognizer
UISwipeGestureRecognizer
UIPanGestureRecognizer
UILongPressGestureRecognizer
UIGestureRecognizer goes too deep with apple’s UI framework, which means we had to write many other classes.
If I would like to recognize the gestures in games, I will catch the points and recognize the trace in ccTouchesMoved. After all, different games have different gestures in requirement. The gesture in InfinityBlade is obviously different from gestures in FruitNinja.