#import <CCLayer.h>
Inherits CCNode, CCStandardTouchDelegate-p, and CCTargetedTouchDelegate-p.
Inherited by CCColorLayer, CCMenu, and CCMultiplexLayer.

Public Member Functions | |
| (void) | - registerWithTouchDispatcher |
Properties | |
| BOOL | isTouchEnabled |
| BOOL | isAccelerometerEnabled |
CCLayer is a subclass of CCNode that implements the TouchEventsDelegate protocol.
All features from CCNode are valid, plus the following new features:
Definition at line 43 of file CCLayer.h.
| - (void) registerWithTouchDispatcher |
If isTouchEnabled, this method is called onEnter. Override it to change the way CCLayer receives touch events. ( Default: [[TouchDispatcher sharedDispatcher] addStandardDelegate:self priority:0] ) Example: -(void) registerWithTouchDispatcher { [[TouchDispatcher sharedDispatcher] addTargetedDelegate:self priority:INT_MIN+1 swallowsTouches:YES]; }
- (BOOL) isAccelerometerEnabled [read, write, assign] |
- (BOOL) isTouchEnabled [read, write, assign] |