Conforms to NSObject
Declared in CCEventDispatcher.h

Overview

CCMouseEventDelegate protocol. Implement it in your node to receive any of mouse events

Tasks

  • – ccMouseDown:

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

  • – ccMouseDragged:

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

  • – ccMouseMoved:

    called when the “mouseMoved” event is received. Return YES to avoid propagating the event to other delegates. By default, “mouseMoved” is disabled. To enable it, send the “setAcceptsMouseMovedEvents:YES” message to the main window.

  • – ccMouseUp:

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

  • – ccRightMouseDown:

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

  • – ccRightMouseDragged:

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

  • – ccRightMouseUp:

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

  • – ccOtherMouseDown:

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

  • – ccOtherMouseDragged:

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

  • – ccOtherMouseUp:

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

  • – ccScrollWheel:

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

  • – ccMouseEntered:

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

  • – ccMouseExited:

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

Instance Methods

ccMouseDown:

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

- (BOOL)ccMouseDown:(NSEvent *)event

Declared In

CCEventDispatcher.h

ccMouseDragged:

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

- (BOOL)ccMouseDragged:(NSEvent *)event

Declared In

CCEventDispatcher.h

ccMouseEntered:

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

- (void)ccMouseEntered:(NSEvent *)theEvent

Declared In

CCEventDispatcher.h

ccMouseExited:

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

- (void)ccMouseExited:(NSEvent *)theEvent

Declared In

CCEventDispatcher.h

ccMouseMoved:

called when the “mouseMoved” event is received. Return YES to avoid propagating the event to other delegates. By default, “mouseMoved” is disabled. To enable it, send the “setAcceptsMouseMovedEvents:YES” message to the main window.

- (BOOL)ccMouseMoved:(NSEvent *)event

Declared In

CCEventDispatcher.h

ccMouseUp:

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

- (BOOL)ccMouseUp:(NSEvent *)event

Declared In

CCEventDispatcher.h

ccOtherMouseDown:

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

- (BOOL)ccOtherMouseDown:(NSEvent *)event

Declared In

CCEventDispatcher.h

ccOtherMouseDragged:

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

- (BOOL)ccOtherMouseDragged:(NSEvent *)event

Declared In

CCEventDispatcher.h

ccOtherMouseUp:

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

- (BOOL)ccOtherMouseUp:(NSEvent *)event

Declared In

CCEventDispatcher.h

ccRightMouseDown:

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

- (BOOL)ccRightMouseDown:(NSEvent *)event

Declared In

CCEventDispatcher.h

ccRightMouseDragged:

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

- (BOOL)ccRightMouseDragged:(NSEvent *)event

Declared In

CCEventDispatcher.h

ccRightMouseUp:

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

- (BOOL)ccRightMouseUp:(NSEvent *)event

Declared In

CCEventDispatcher.h

ccScrollWheel:

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

- (BOOL)ccScrollWheel:(NSEvent *)theEvent

Declared In

CCEventDispatcher.h