CCMouseEventDelegate Protocol Reference
| Conforms to | NSObject |
| Declared in | CCEventDispatcher.h |
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 *)eventDeclared In
CCEventDispatcher.hccMouseDragged:
called when the “mouseDragged” event is received. Return YES to avoid propagating the event to other delegates.
- (BOOL)ccMouseDragged:(NSEvent *)eventDeclared In
CCEventDispatcher.hccMouseEntered:
called when the “mouseEntered” event is received. Return YES to avoid propagating the event to other delegates.
- (void)ccMouseEntered:(NSEvent *)theEventDeclared In
CCEventDispatcher.hccMouseExited:
called when the “mouseExited” event is received. Return YES to avoid propagating the event to other delegates.
- (void)ccMouseExited:(NSEvent *)theEventDeclared In
CCEventDispatcher.hccMouseMoved:
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 *)eventDeclared In
CCEventDispatcher.hccMouseUp:
called when the “mouseUp” event is received. Return YES to avoid propagating the event to other delegates.
- (BOOL)ccMouseUp:(NSEvent *)eventDeclared In
CCEventDispatcher.hccOtherMouseDown:
called when the “otherMouseDown” event is received. Return YES to avoid propagating the event to other delegates.
- (BOOL)ccOtherMouseDown:(NSEvent *)eventDeclared In
CCEventDispatcher.hccOtherMouseDragged:
called when the “otherMouseDragged” event is received. Return YES to avoid propagating the event to other delegates.
- (BOOL)ccOtherMouseDragged:(NSEvent *)eventDeclared In
CCEventDispatcher.hccOtherMouseUp:
called when the “otherMouseUp” event is received. Return YES to avoid propagating the event to other delegates.
- (BOOL)ccOtherMouseUp:(NSEvent *)eventDeclared In
CCEventDispatcher.hccRightMouseDown:
called when the “rightMouseDown” event is received. Return YES to avoid propagating the event to other delegates.
- (BOOL)ccRightMouseDown:(NSEvent *)eventDeclared In
CCEventDispatcher.hccRightMouseDragged:
called when the “rightMouseDragged” event is received. Return YES to avoid propagating the event to other delegates.
- (BOOL)ccRightMouseDragged:(NSEvent *)eventDeclared In
CCEventDispatcher.h