cocos2d-mac  1.0.1
Improved Cocos2D API Reference (Mac OS X version) for Kobold2D developers
<CCTouchEventDelegate> Protocol Reference

#include <CCEventDispatcher.h>

Inheritance diagram for <CCTouchEventDelegate>:

List of all members.

Public Member Functions

BOOL ccTouchesBeganWithEvent: (NSEvent *event)
BOOL ccTouchesMovedWithEvent: (NSEvent *event)
BOOL ccTouchesEndedWithEvent: (NSEvent *event)
BOOL ccTouchesCancelledWithEvent: (NSEvent *event)

Detailed Description

CCTouchEventDelegate protocol. Implement it in your node to receive any of touch events


Member Function Documentation

BOOL CCTouchEventDelegate-p::ccTouchesBeganWithEvent: ( NSEvent *  event) [optional, virtual]

called when the "touchesBegan" event is received. Return YES to avoid propagating the event to other delegates.

BOOL CCTouchEventDelegate-p::ccTouchesCancelledWithEvent: ( NSEvent *  event) [optional, virtual]

called when the "touchesCancelled" event is received. Return YES to avoid propagating the event to other delegates.

BOOL CCTouchEventDelegate-p::ccTouchesEndedWithEvent: ( NSEvent *  event) [optional, virtual]

called when the "touchesEnded" event is received. Return YES to avoid propagating the event to other delegates.

BOOL CCTouchEventDelegate-p::ccTouchesMovedWithEvent: ( NSEvent *  event) [optional, virtual]

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: