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

CCKeyboardEventDelegate protocol. More...

#import <CCEventDispatcher.h>

Inheritance diagram for <CCKeyboardEventDelegate>:

Instance Methods

(BOOL) - ccKeyUp:
 called when the "keyUp" event is received. More...
 
(BOOL) - ccKeyDown:
 called when the "keyDown" event is received. More...
 
(BOOL) - ccFlagsChanged:
 called when the "flagsChanged" event is received. More...
 

Detailed Description

CCKeyboardEventDelegate protocol.

Implement it in your node to receive any of keyboard events

Method Documentation

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

called when the "flagsChanged" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccFlagsChanged: var  event
optional

called when the "flagsChanged" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccFlagsChanged: local  event
optional

called when the "flagsChanged" event is received.

Return YES to avoid propagating the event to other delegates.

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

called when the "keyDown" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccKeyDown: var  event
optional

called when the "keyDown" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccKeyDown: local  event
optional

called when the "keyDown" event is received.

Return YES to avoid propagating the event to other delegates.

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

called when the "keyUp" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccKeyUp: var  event
optional

called when the "keyUp" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccKeyUp: local  event
optional

called when the "keyUp" event is received.

Return YES to avoid propagating the event to other delegates.


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