mirror of https://github.com/axmolengine/axmol.git
[dispatcher] Updating the declare of event listeners in Layer. Using more specified type.
This commit is contained in:
parent
d940e01bc1
commit
499e8caf7a
|
@ -29,13 +29,13 @@ THE SOFTWARE.
|
||||||
|
|
||||||
#include "base_nodes/CCNode.h"
|
#include "base_nodes/CCNode.h"
|
||||||
#include "CCProtocols.h"
|
#include "CCProtocols.h"
|
||||||
#include "event_dispatcher/CCKeyboardEvent.h"
|
|
||||||
#include "event_dispatcher/CCTouchEvent.h"
|
|
||||||
#include "cocoa/CCArray.h"
|
#include "cocoa/CCArray.h"
|
||||||
#ifdef EMSCRIPTEN
|
#ifdef EMSCRIPTEN
|
||||||
#include "base_nodes/CCGLBufferedNode.h"
|
#include "base_nodes/CCGLBufferedNode.h"
|
||||||
#endif // EMSCRIPTEN
|
#endif // EMSCRIPTEN
|
||||||
|
|
||||||
|
#include "event_dispatcher/CCKeyboardEvent.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -45,6 +45,9 @@ NS_CC_BEGIN
|
||||||
|
|
||||||
class TouchScriptHandlerEntry;
|
class TouchScriptHandlerEntry;
|
||||||
|
|
||||||
|
class TouchEventListener;
|
||||||
|
class KeyboardEventListener;
|
||||||
|
class AccelerationEventListener;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Layer
|
// Layer
|
||||||
|
@ -180,9 +183,9 @@ protected:
|
||||||
bool _touchEnabled;
|
bool _touchEnabled;
|
||||||
bool _accelerometerEnabled;
|
bool _accelerometerEnabled;
|
||||||
bool _keyboardEnabled;
|
bool _keyboardEnabled;
|
||||||
EventListener* _touchListener;
|
TouchEventListener* _touchListener;
|
||||||
EventListener* _keyboardListener;
|
KeyboardEventListener* _keyboardListener;
|
||||||
EventListener* _accelerationListener;
|
AccelerationEventListener* _accelerationListener;
|
||||||
private:
|
private:
|
||||||
Touch::DispatchMode _touchMode;
|
Touch::DispatchMode _touchMode;
|
||||||
bool _swallowsTouches;
|
bool _swallowsTouches;
|
||||||
|
|
Loading…
Reference in New Issue