mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-29 04:23:34 +00:00
23 lines
505 B
C++
23 lines
505 B
C++
#ifndef EVENT_LISTENER
|
|
#define EVENT_LISTENER
|
|
|
|
#include "gameManager.h"
|
|
|
|
namespace game{
|
|
namespace core{
|
|
class EventListener : public irr::IEventReceiver {
|
|
public:
|
|
EventListener(GameManager*);
|
|
~EventListener();
|
|
virtual bool OnEvent(const irr::SEvent&);
|
|
void update();
|
|
private:
|
|
irr::SEvent* event;
|
|
bool keyEvent = false, mouseEvent = false;
|
|
GameManager* gameManager;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif
|