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

CCMouseEventDelegate protocol. More...

#import <CCEventDispatcher.h>

Inheritance diagram for <CCMouseEventDelegate>:

Instance Methods

(BOOL) - ccMouseDown:
 called when the "mouseDown" event is received. More...
 
(BOOL) - ccMouseDragged:
 called when the "mouseDragged" event is received. More...
 
(BOOL) - ccMouseMoved:
 called when the "mouseMoved" event is received. More...
 
(BOOL) - ccMouseUp:
 called when the "mouseUp" event is received. More...
 
(BOOL) - ccRightMouseDown:
 called when the "rightMouseDown" event is received. More...
 
(BOOL) - ccRightMouseDragged:
 called when the "rightMouseDragged" event is received. More...
 
(BOOL) - ccRightMouseUp:
 called when the "rightMouseUp" event is received. More...
 
(BOOL) - ccOtherMouseDown:
 called when the "otherMouseDown" event is received. More...
 
(BOOL) - ccOtherMouseDragged:
 called when the "otherMouseDragged" event is received. More...
 
(BOOL) - ccOtherMouseUp:
 called when the "otherMouseUp" event is received. More...
 
(BOOL) - ccScrollWheel:
 called when the "scrollWheel" event is received. More...
 
(void) - ccMouseEntered:
 called when the "mouseEntered" event is received. More...
 
(void) - ccMouseExited:
 called when the "mouseExited" event is received. More...
 

Detailed Description

CCMouseEventDelegate protocol.

Implement it in your node to receive any of mouse events

Method Documentation

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

called when the "mouseDown" event is received.

Return YES to avoid propagating the event to other delegates.

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

called when the "mouseDragged" event is received.

Return YES to avoid propagating the event to other delegates.

- (void) ccMouseEntered: (NSEvent *)  theEvent
optional

called when the "mouseEntered" event is received.

Return YES to avoid propagating the event to other delegates.

- (void) ccMouseExited: (NSEvent *)  theEvent
optional

called when the "mouseExited" event is received.

Return YES to avoid propagating the event to other delegates.

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

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) ccMouseUp: (NSEvent *)  event
optional

called when the "mouseUp" event is received.

Return YES to avoid propagating the event to other delegates.

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

called when the "otherMouseDown" event is received.

Return YES to avoid propagating the event to other delegates.

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

called when the "otherMouseDragged" event is received.

Return YES to avoid propagating the event to other delegates.

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

called when the "otherMouseUp" event is received.

Return YES to avoid propagating the event to other delegates.

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

called when the "rightMouseDown" event is received.

Return YES to avoid propagating the event to other delegates.

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

called when the "rightMouseDragged" event is received.

Return YES to avoid propagating the event to other delegates.

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

called when the "rightMouseUp" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccScrollWheel: (NSEvent *)  theEvent
optional

called when the "scrollWheel" event is received.

Return YES to avoid propagating the event to other delegates.


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