Detect Swipe Direction in cocos2d-x -


detect swipe in cocos2d-x. how can find direction of swipe using ccswipegestureregognizer. find whether swipe left or right direction on screen.

taken documentation ( link ) :

in callback method should receive ccobject* parameter, should cast ccswipe* has public memeber ccswipegesturerecognizerdirection direction; believe need.

let me know if not clear.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -