cocos2d-mac  1.0.1
Improved Cocos2D API Reference (Mac OS X version) for Kobold2D developers
<CCMouseEventDelegate> Protocol Reference

#include <CCEventDispatcher.h>

Inheritance diagram for <CCMouseEventDelegate>:

List of all members.

Public Member Functions

BOOL ccMouseDown: (NSEvent *event)
BOOL ccMouseDragged: (NSEvent *event)
BOOL ccMouseMoved: (NSEvent *event)
BOOL ccMouseUp: (NSEvent *event)
BOOL ccRightMouseDown: (NSEvent *event)
BOOL ccRightMouseDragged: (NSEvent *event)
BOOL ccRightMouseUp: (NSEvent *event)
BOOL ccOtherMouseDown: (NSEvent *event)
BOOL ccOtherMouseDragged: (NSEvent *event)
BOOL ccOtherMouseUp: (NSEvent *event)
BOOL ccScrollWheel: (NSEvent *theEvent)
void ccMouseEntered: (NSEvent *theEvent)
void ccMouseExited: (NSEvent *theEvent)

Detailed Description

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


Member Function Documentation

BOOL CCMouseEventDelegate-p::ccMouseDown: ( NSEvent *  event) [optional, virtual]

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

BOOL CCMouseEventDelegate-p::ccMouseDragged: ( NSEvent *  event) [optional, virtual]

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

void CCMouseEventDelegate-p::ccMouseEntered: ( NSEvent *  theEvent) [optional, virtual]

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

void CCMouseEventDelegate-p::ccMouseExited: ( NSEvent *  theEvent) [optional, virtual]

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

BOOL CCMouseEventDelegate-p::ccMouseMoved: ( NSEvent *  event) [optional, virtual]

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 CCMouseEventDelegate-p::ccMouseUp: ( NSEvent *  event) [optional, virtual]

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

BOOL CCMouseEventDelegate-p::ccOtherMouseDown: ( NSEvent *  event) [optional, virtual]

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

BOOL CCMouseEventDelegate-p::ccOtherMouseDragged: ( NSEvent *  event) [optional, virtual]

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

BOOL CCMouseEventDelegate-p::ccOtherMouseUp: ( NSEvent *  event) [optional, virtual]

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

BOOL CCMouseEventDelegate-p::ccRightMouseDown: ( NSEvent *  event) [optional, virtual]

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

BOOL CCMouseEventDelegate-p::ccRightMouseDragged: ( NSEvent *  event) [optional, virtual]

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

BOOL CCMouseEventDelegate-p::ccRightMouseUp: ( NSEvent *  event) [optional, virtual]

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

BOOL CCMouseEventDelegate-p::ccScrollWheel: ( NSEvent *  theEvent) [optional, virtual]

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: