CCEventDispatcher.
More...
#import <CCEventDispatcher.h>
CCEventDispatcher.
This is object is responsible for dispatching the events:
- Mouse events
- Keyboard events
- Touch events
Only available on Mac
Adds a Keyboard delegate to the dispatcher's list.
Delegates with a lower priority value will be called before higher priority values. All the events will be propgated to all the delegates, unless the one delegate returns YES.
IMPORTANT: The delegate will be retained.
- (void) addKeyboardDelegate: |
|
var |
delegate |
priority: |
|
var |
priority |
|
|
| |
Adds a Keyboard delegate to the dispatcher's list.
Delegates with a lower priority value will be called before higher priority values. All the events will be propgated to all the delegates, unless the one delegate returns YES.
IMPORTANT: The delegate will be retained.
- (void) addKeyboardDelegate: |
|
local |
delegate |
priority: |
|
local |
priority |
|
|
| |
Adds a Keyboard delegate to the dispatcher's list.
Delegates with a lower priority value will be called before higher priority values. All the events will be propgated to all the delegates, unless the one delegate returns YES.
IMPORTANT: The delegate will be retained.
Adds a mouse delegate to the dispatcher's list.
Delegates with a lower priority value will be called before higher priority values. All the events will be propgated to all the delegates, unless the one delegate returns YES.
IMPORTANT: The delegate will be retained.
- (void) addMouseDelegate: |
|
var |
delegate |
priority: |
|
var |
priority |
|
|
| |
Adds a mouse delegate to the dispatcher's list.
Delegates with a lower priority value will be called before higher priority values. All the events will be propgated to all the delegates, unless the one delegate returns YES.
IMPORTANT: The delegate will be retained.
- (void) addMouseDelegate: |
|
local |
delegate |
priority: |
|
local |
priority |
|
|
| |
Adds a mouse delegate to the dispatcher's list.
Delegates with a lower priority value will be called before higher priority values. All the events will be propgated to all the delegates, unless the one delegate returns YES.
IMPORTANT: The delegate will be retained.
Adds a Touch delegate to the dispatcher's list.
Delegates with a lower priority value will be called before higher priority values. All the events will be propgated to all the delegates, unless the one delegate returns YES.
IMPORTANT: The delegate will be retained.
- (void) addTouchDelegate: |
|
var |
delegate |
priority: |
|
var |
priority |
|
|
| |
Adds a Touch delegate to the dispatcher's list.
Delegates with a lower priority value will be called before higher priority values. All the events will be propgated to all the delegates, unless the one delegate returns YES.
IMPORTANT: The delegate will be retained.
- (void) addTouchDelegate: |
|
local |
delegate |
priority: |
|
local |
priority |
|
|
| |
Adds a Touch delegate to the dispatcher's list.
Delegates with a lower priority value will be called before higher priority values. All the events will be propgated to all the delegates, unless the one delegate returns YES.
IMPORTANT: The delegate will be retained.
- (void) removeAllKeyboardDelegates |
|
|
|
Removes all mouse delegates, releasing all the delegates.
var removeAllKeyboardDelegates |
|
|
|
Removes all mouse delegates, releasing all the delegates.
local removeAllKeyboardDelegates |
|
|
|
Removes all mouse delegates, releasing all the delegates.
- (void) removeAllMouseDelegates |
|
|
|
Removes all mouse delegates, releasing all the delegates.
var removeAllMouseDelegates |
|
|
|
Removes all mouse delegates, releasing all the delegates.
local removeAllMouseDelegates |
|
|
|
Removes all mouse delegates, releasing all the delegates.
- (void) removeAllTouchDelegates |
|
|
|
Removes all touch delegates, releasing all the delegates.
var removeAllTouchDelegates |
|
|
|
Removes all touch delegates, releasing all the delegates.
local removeAllTouchDelegates |
|
|
|
Removes all touch delegates, releasing all the delegates.
- (void) removeKeyboardDelegate: |
|
(id) |
delegate |
|
- (void) removeKeyboardDelegate: |
|
var |
delegate |
|
- (void) removeKeyboardDelegate: |
|
local |
delegate |
|
- (void) removeMouseDelegate: |
|
(id) |
delegate |
|
- (void) removeMouseDelegate: |
|
var |
delegate |
|
- (void) removeMouseDelegate: |
|
local |
delegate |
|
- (void) removeTouchDelegate: |
|
(id) |
delegate |
|
Removes a touch delegate.
- (void) removeTouchDelegate: |
|
var |
delegate |
|
Removes a touch delegate.
- (void) removeTouchDelegate: |
|
local |
delegate |
|
Removes a touch delegate.
- (struct _listEntry*)
keyboardDelegates_ |
|
protected |
- (struct _listEntry*)
mouseDelegates_ |
|
protected |
- (struct _listEntry*)
touchDelegates_ |
|
protected |
The documentation for this class was generated from the following file: