I've written a simple library for recognizing gestures for cocos2d-x. Now I want to share it if anyone finds it helpful.
The classes are in C++ and platform independent, of course cocos2d-x is required. Currently, this lib works with cocos2d-x v3.x, but I think with some simple modifications, it can work with v2.x.
Gestures supported: Tap, Double tap, Long press, Pan, Pinch, Rotation, Swipe.
The source is located here (with example included):
The example is tested on iOS only, but I hope it will work on other platforms as well.
If anyone can port it to work with cocos2d-x v2.x, please let me know.