CCKeyboardEventDelegate Protocol Reference
| Conforms to | NSObject |
| Declared in | CCEventDispatcher.h |
Overview
CCKeyboardEventDelegate protocol. Implement it in your node to receive any of keyboard events
Tasks
-
– ccKeyUp:called when the “keyUp” event is received. Return YES to avoid propagating the event to other delegates.
-
– ccKeyDown:called when the “keyDown” event is received. Return YES to avoid propagating the event to other delegates.
-
– ccFlagsChanged:called when the “flagsChanged” event is received. Return YES to avoid propagating the event to other delegates.
Instance Methods
ccFlagsChanged:
called when the “flagsChanged” event is received. Return YES to avoid propagating the event to other delegates.
- (BOOL)ccFlagsChanged:(NSEvent *)eventDeclared In
CCEventDispatcher.h