|
| ~CCTouchDispatcher () |
| NA. More...
|
|
bool | init (void) |
| NA. More...
|
|
| CCTouchDispatcher () |
| NA. More...
|
|
bool | isDispatchEvents (void) |
| Whether or not the events are going to be dispatched. More...
|
|
void | setDispatchEvents (bool bDispatchEvents) |
|
void | addStandardDelegate (CCTouchDelegate *pDelegate, int nPriority) |
| Adds a standard touch delegate to the dispatcher's list. More...
|
|
void | addTargetedDelegate (CCTouchDelegate *pDelegate, int nPriority, bool bSwallowsTouches) |
| Adds a targeted touch delegate to the dispatcher's list. More...
|
|
void | removeDelegate (CCTouchDelegate *pDelegate) |
| Removes a touch delegate. More...
|
|
void | removeAllDelegates (void) |
| Removes all touch delegates, releasing all the delegates NA. More...
|
|
void | setPriority (int nPriority, CCTouchDelegate *pDelegate) |
| Changes the priority of a previously added delegate. More...
|
|
void | touches (CCSet *pTouches, CCEvent *pEvent, unsigned int uIndex) |
| NA. More...
|
|
virtual void | touchesBegan (CCSet *touches, CCEvent *pEvent) |
| NA. More...
|
|
virtual void | touchesMoved (CCSet *touches, CCEvent *pEvent) |
| NA. More...
|
|
virtual void | touchesEnded (CCSet *touches, CCEvent *pEvent) |
| NA. More...
|
|
virtual void | touchesCancelled (CCSet *touches, CCEvent *pEvent) |
| NA. More...
|
|
CCTouchHandler * | findHandler (CCTouchDelegate *pDelegate) |
| NA. More...
|
|
|
void | incrementForcePrio (int priority) |
|
void | decrementForcePrio (int priority) |
|
| CCObject (void) |
|
virtual | ~CCObject (void) |
| NA. More...
|
|
void | release (void) |
|
void | retain (void) |
|
CCObject * | autorelease (void) |
|
CCObject * | copy (void) |
|
bool | isSingleReference (void) const |
|
unsigned int | retainCount (void) const |
|
virtual bool | isEqual (const CCObject *pObject) |
|
virtual void | acceptVisitor (CCDataVisitor &visitor) |
|
virtual void | update (float dt) |
|
| CCObject (const CCObject &) |
|
CCObject & | operator= (const CCObject &) |
|
virtual void | encodeWithCoder (DS_Dictionary *) |
|
virtual bool | canEncode () |
|
CCObjectType | getObjType () const |
|
virtual int | getTag () const |
|
virtual void | setTag (int nTag) |
|
void | setObjType (CCObjectType) |
|
virtual CCObject * | copyWithZone (CCZone *pZone) |
|
virtual void | touchesBegan (CCSet *touches, CCEvent *pEvent)=0 |
| NA. More...
|
|
virtual void | touchesMoved (CCSet *touches, CCEvent *pEvent)=0 |
| NA. More...
|
|
virtual void | touchesEnded (CCSet *touches, CCEvent *pEvent)=0 |
| NA. More...
|
|
virtual void | touchesCancelled (CCSet *touches, CCEvent *pEvent)=0 |
| NA. More...
|
|
virtual | ~EGLTouchDelegate () |
| NA. More...
|
|
CCTouchDispatcher.
Singleton that handles all the touch events. The dispatcher dispatches events to the registered TouchHandlers. There are 2 different type of touch handlers:
- Standard Touch Handlers
- Targeted Touch Handlers
The Standard Touch Handlers work like the CocoaTouch touch handler: a set of touches is passed to the delegate. On the other hand, the Targeted Touch Handlers only receive 1 touch at the time, and they can "swallow" touches (avoid the propagation of the event).
Firstly, the dispatcher sends the received touches to the targeted touches. These touches can be swallowed by the Targeted Touch Handlers. If there are still remaining touches, then the remaining touches will be sent to the Standard Touch Handlers.
- Since
- v0.8.0 NA