mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
More Event Functions
This commit is contained in:
parent
14c31689be
commit
52cb15482e
|
@ -35,6 +35,16 @@ bool HasEvent(_SDLEventType_ EventTypeMin,_SDLEventType_ EventTypeMax)
|
|||
return ( SDL_HasEvents(EventTypeMin,EventTypeMax)==SDL_TRUE );
|
||||
}
|
||||
|
||||
_SDLEventType_ RegisterEvent(int howMuch)
|
||||
{
|
||||
return SDL_RegisterEvents(howMuch);
|
||||
}
|
||||
|
||||
bool IsValidEventType(_SDLEventType_ EventType)
|
||||
{
|
||||
return (EventType > SDL_FIRSTEVENT) && (EventType < SDL_LASTEVENT);
|
||||
}
|
||||
|
||||
bool operator == (const LooperID& a,const LooperID& b)
|
||||
{
|
||||
return a._type_id==b._type_id && a._looper_cnt==b._looper_cnt ;
|
||||
|
|
|
@ -17,6 +17,8 @@ bool HasEvent(_SDLEventType_ EventTypeMin,_SDLEventType_ EventTypeMax);
|
|||
bool EnableEvent(_SDLEventType_ EventType);
|
||||
bool DisableEvent(_SDLEventType_ EventType);
|
||||
bool IsEventEnabled(_SDLEventType_ EventType);
|
||||
_SDLEventType_ RegisterEvent(int howMuch);
|
||||
bool IsValidEventType(_SDLEventType_ EventType);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user