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

MouseEventDelegate 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...
 
local - 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

MouseEventDelegate 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) ccMouseDown: var  event
optional

called when the "mouseDown" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccMouseDown: local  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.

- (BOOL) ccMouseDragged: var  event
optional

called when the "mouseDragged" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccMouseDragged: local  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) ccMouseEntered: var  theEvent
optional

called when the "mouseEntered" event is received.

Return YES to avoid propagating the event to other delegates.

- (void) ccMouseEntered: local  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.

- (void) ccMouseExited: var  theEvent
optional

called when the "mouseExited" event is received.

Return YES to avoid propagating the event to other delegates.

- (void) ccMouseExited: local  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) ccMouseMoved: var  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) ccMouseMoved: local  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) ccMouseUp: var  event
optional

called when the "mouseUp" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccMouseUp: local  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) ccOtherMouseDown: var  event
optional

called when the "otherMouseDown" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccOtherMouseDown: local  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) ccOtherMouseDragged: var  event
optional

called when the "otherMouseDragged" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccOtherMouseDragged: local  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) ccOtherMouseUp: var  event
optional

called when the "otherMouseUp" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccOtherMouseUp: local  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) ccRightMouseDown: var  event
optional

called when the "rightMouseDown" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccRightMouseDown: local  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) ccRightMouseDragged: var  event
optional

called when the "rightMouseDragged" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccRightMouseDragged: local  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) ccRightMouseUp: var  event
optional

called when the "rightMouseUp" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccRightMouseUp: local  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.

- (BOOL) ccScrollWheel: var  theEvent
optional

called when the "scrollWheel" event is received.

Return YES to avoid propagating the event to other delegates.

- (BOOL) ccScrollWheel: local  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: