Event handling are now under MiniEngine namespace

This commit is contained in:
Kirigaya Kazuto 2017-07-01 15:58:34 +08:00
parent 2fdf701703
commit 943cb0def0
2 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,8 @@
#include "MiniEngine_Event.h"
namespace MiniEngine
{
int PollEvent(Event& refEvent)
{
return SDL_PollEvent(&refEvent);
@ -279,3 +282,5 @@ void LooperWithTime::run()
}
}
}
}/// End of namespace MiniEngine

View File

@ -4,6 +4,9 @@
#include <list>
#include <functional>
namespace MiniEngine
{
typedef SDL_Event Event;
typedef decltype(Event::type) _SDLEventType_;
@ -97,3 +100,5 @@ public:
protected:
int _timeout_ms;
};
}/// End of namespace MiniEngine