In a subclass of CCLayer, just set "isTouchEnabled" to true and implement the callback functions.
Otherwise, add a touch delegate class to the touch dispatcher. There are 2 types, as explained here: http://www.cocos2d-iphone.org/wiki/doku.php/tips:touchdelegates
No comments:
Post a Comment