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
Post a Comment