mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
Add Minimum Event Support
This commit is contained in:
parent
8a9d347800
commit
65c8b2e6ef
|
@ -1 +1,21 @@
|
|||
#include "MiniEngine_Event.h"
|
||||
|
||||
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));
|
||||
}
|
||||
|
|
|
@ -1,2 +1,9 @@
|
|||
#pragma once
|
||||
#include "MiniEngine.h"
|
||||
|
||||
typedef SDL_Event Event;
|
||||
|
||||
int PollEvent(Event& refEvent);
|
||||
int WaitEvent(Event& refEvent);
|
||||
int WaitEventTimeout(Event& refEvent,int ms);
|
||||
int PushEvent(const Event& refEvent);
|
||||
|
|
Loading…
Reference in New Issue
Block a user