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

jquery - isAjaxRequest always return false -

php - SPIP: From Tag directly to an article -