mirror of https://github.com/axmolengine/axmol.git
[Dispatcher] Removing unused codes.
This commit is contained in:
parent
27b71ba73c
commit
30a3199a91
|
@ -27,6 +27,5 @@
|
|||
|
||||
NS_CC_BEGIN
|
||||
|
||||
const char* EventKeyboard::EVENT_TYPE = "KeyboardEvent";
|
||||
|
||||
NS_CC_END
|
||||
|
|
|
@ -37,7 +37,7 @@ EventListenerAcceleration::~EventListenerAcceleration()
|
|||
CCLOGINFO("In the destructor of AccelerationEventListener. %p", this);
|
||||
}
|
||||
|
||||
EventListenerAcceleration* EventListenerAcceleration::create(std::function<void(Acceleration*, Event* event)> callback)
|
||||
EventListenerAcceleration* EventListenerAcceleration::create(std::function<void(Acceleration*, Event*)> callback)
|
||||
{
|
||||
EventListenerAcceleration* ret = new EventListenerAcceleration();
|
||||
if (ret && ret->init(callback))
|
||||
|
|
|
@ -33,7 +33,7 @@ NS_CC_BEGIN
|
|||
class EventListenerAcceleration : public EventListener
|
||||
{
|
||||
public:
|
||||
static EventListenerAcceleration* create(std::function<void(Acceleration*, Event* event)> callback);
|
||||
static EventListenerAcceleration* create(std::function<void(Acceleration*, Event*)> callback);
|
||||
virtual ~EventListenerAcceleration();
|
||||
|
||||
/// Overrides
|
||||
|
|
|
@ -42,8 +42,8 @@ public:
|
|||
virtual EventListenerKeyboard* clone() override;
|
||||
virtual bool checkAvailable() override;
|
||||
|
||||
std::function<void(EventKeyboard::KeyCode, Event* event)> onKeyPressed;
|
||||
std::function<void(EventKeyboard::KeyCode, Event* event)> onKeyReleased;
|
||||
std::function<void(EventKeyboard::KeyCode, Event*)> onKeyPressed;
|
||||
std::function<void(EventKeyboard::KeyCode, Event*)> onKeyReleased;
|
||||
private:
|
||||
EventListenerKeyboard();
|
||||
bool init();
|
||||
|
|
Loading…
Reference in New Issue