|
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
#import <CCTouchDelegateProtocol.h>
Inheritance diagram for <CCTouchOneByOneDelegate>:Public Member Functions | |
| (BOOL) | - ccTouchBegan:withEvent: |
| (void) | - ccTouchMoved:withEvent: |
| (void) | - ccTouchEnded:withEvent: |
| (void) | - ccTouchCancelled:withEvent: |
Using this type of delegate results in two benefits:
(The name TargetedTouchDelegate relates to updates "targeting" their specific handler, without bothering the other handlers.)
| - (BOOL) ccTouchBegan: | (UITouch *) | touch | |
| withEvent: | (UIEvent *) | event | |
Return YES to claim the touch.