mirror of https://github.com/axmolengine/axmol.git
add CC_DLL in Event systems
This commit is contained in:
parent
09a75f73cf
commit
190264c090
|
@ -53,7 +53,7 @@ event listeners can be added and removed even
|
||||||
from within an EventListener, while events are being
|
from within an EventListener, while events are being
|
||||||
dispatched.
|
dispatched.
|
||||||
*/
|
*/
|
||||||
class EventDispatcher : public Ref
|
class CC_DLL EventDispatcher : public Ref
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// Adds event listener
|
// Adds event listener
|
||||||
|
|
|
@ -43,7 +43,7 @@ class Node;
|
||||||
* If you need custom listener which with different callback, you need to inherit this class.
|
* If you need custom listener which with different callback, you need to inherit this class.
|
||||||
* For instance, you could refer to EventListenerAcceleration, EventListenerKeyboard, EventListenerTouchOneByOne, EventListenerCustom.
|
* For instance, you could refer to EventListenerAcceleration, EventListenerKeyboard, EventListenerTouchOneByOne, EventListenerCustom.
|
||||||
*/
|
*/
|
||||||
class EventListener : public Ref
|
class CC_DLL EventListener : public Ref
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum class Type
|
enum class Type
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
class EventListenerTouchOneByOne : public EventListener
|
class CC_DLL EventListenerTouchOneByOne : public EventListener
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static const std::string LISTENER_ID;
|
static const std::string LISTENER_ID;
|
||||||
|
@ -67,7 +67,7 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class EventListenerTouchAllAtOnce : public EventListener
|
class CC_DLL EventListenerTouchAllAtOnce : public EventListener
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static const std::string LISTENER_ID;
|
static const std::string LISTENER_ID;
|
||||||
|
|
Loading…
Reference in New Issue