MiniEngine/MiniEngine_Event.cpp

22 lines
372 B
C++
Raw Normal View History

2017-04-04 09:49:18 +08:00
#include "MiniEngine_Event.h"
2017-05-02 12:59:57 +08:00
int PollEvent(Event& refEvent)
{
return SDL_PollEvent(&refEvent);
}
int WaitEvent(Event& refEvent)
{
return SDL_WaitEvent(&refEvent);
}
int WaitEventTimeout(Event& refEvent,int ms)
{
return SDL_WaitEventTimeout(&refEvent,ms);
}
int PushEvent(const Event& refEvent)
{
return SDL_PushEvent(const_cast<Event*>(&refEvent));
}