mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
Event handling are now under MiniEngine namespace
This commit is contained in:
parent
2fdf701703
commit
943cb0def0
|
@ -1,5 +1,8 @@
|
||||||
#include "MiniEngine_Event.h"
|
#include "MiniEngine_Event.h"
|
||||||
|
|
||||||
|
namespace MiniEngine
|
||||||
|
{
|
||||||
|
|
||||||
int PollEvent(Event& refEvent)
|
int PollEvent(Event& refEvent)
|
||||||
{
|
{
|
||||||
return SDL_PollEvent(&refEvent);
|
return SDL_PollEvent(&refEvent);
|
||||||
|
@ -279,3 +282,5 @@ void LooperWithTime::run()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}/// End of namespace MiniEngine
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
|
namespace MiniEngine
|
||||||
|
{
|
||||||
|
|
||||||
typedef SDL_Event Event;
|
typedef SDL_Event Event;
|
||||||
typedef decltype(Event::type) _SDLEventType_;
|
typedef decltype(Event::type) _SDLEventType_;
|
||||||
|
|
||||||
|
@ -97,3 +100,5 @@ public:
|
||||||
protected:
|
protected:
|
||||||
int _timeout_ms;
|
int _timeout_ms;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}/// End of namespace MiniEngine
|
||||||
|
|
Loading…
Reference in New Issue
Block a user