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 *)event

Declared In

CCEventDispatcher.h

ccKeyDown:

called when the “keyDown” event is received. Return YES to avoid propagating the event to other delegates.

- (BOOL)ccKeyDown:(NSEvent *)event

Declared In

CCEventDispatcher.h

ccKeyUp:

called when the “keyUp” event is received. Return YES to avoid propagating the event to other delegates.

- (BOOL)ccKeyUp:(NSEvent *)event

Declared In

CCEventDispatcher.h