cocos2d-x  2.2.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
<CCTouchEventDelegate> Protocol Reference

CCTouchEventDelegate protocol. More...

#import <CCEventDispatcher.h>

Inheritance diagram for <CCTouchEventDelegate>:

Instance Methods

(BOOL) - ccTouchesBeganWithEvent:
 called when the "touchesBegan" event is received. More...
 
(BOOL) - ccTouchesMovedWithEvent:
 called when the "touchesMoved" event is received. More...
 
(BOOL) - ccTouchesEndedWithEvent:
 called when the "touchesEnded" event is received. More...
 
(BOOL) - ccTouchesCancelledWithEvent:
 called when the "touchesCancelled" event is received. More...
 

Detailed Description

CCTouchEventDelegate protocol.

Implement it in your node to receive any of touch events

Method Documentation

- (BOOL) ccTouchesBeganWithEvent: (NSEvent *)  event
optional

called when the "touchesBegan" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccTouchesBeganWithEvent: var  event
optional

called when the "touchesBegan" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccTouchesBeganWithEvent: local  event
optional

called when the "touchesBegan" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL)
ccTouchesCancelledWithEvent:
(NSEvent *)  event
optional

called when the "touchesCancelled" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL)
ccTouchesCancelledWithEvent:
var  event
optional

called when the "touchesCancelled" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL)
ccTouchesCancelledWithEvent:
local  event
optional

called when the "touchesCancelled" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccTouchesEndedWithEvent: (NSEvent *)  event
optional

called when the "touchesEnded" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccTouchesEndedWithEvent: var  event
optional

called when the "touchesEnded" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccTouchesEndedWithEvent: local  event
optional

called when the "touchesEnded" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccTouchesMovedWithEvent: (NSEvent *)  event
optional

called when the "touchesMoved" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccTouchesMovedWithEvent: var  event
optional

called when the "touchesMoved" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccTouchesMovedWithEvent: local  event
optional

called when the "touchesMoved" event is received.

Return YES to avoid propagating the event to other delegates.


The documentation for this protocol was generated from the following file: