mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
Add more support for Event Handling.
This commit is contained in:
parent
a33a27dbb0
commit
7cab64132d
|
@ -40,6 +40,11 @@ bool operator == (const LooperID& a,const LooperID& b)
|
||||||
return a._type_id==b._type_id && a._looper_cnt==b._looper_cnt ;
|
return a._type_id==b._type_id && a._looper_cnt==b._looper_cnt ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool operator != (const LooperID& a,const LooperID& b)
|
||||||
|
{
|
||||||
|
return !(a==b);
|
||||||
|
}
|
||||||
|
|
||||||
Looper::Looper()
|
Looper::Looper()
|
||||||
{
|
{
|
||||||
_update=_running=true;
|
_update=_running=true;
|
||||||
|
|
|
@ -12,6 +12,9 @@ int PushEvent(const Event& refEvent);
|
||||||
void PumpEvents();
|
void PumpEvents();
|
||||||
bool HasEvent(decltype(Event::type) EventType);
|
bool HasEvent(decltype(Event::type) EventType);
|
||||||
bool HasEvent(decltype(Event::type) EventTypeMin,decltype(Event::type) EventTypeMax);
|
bool HasEvent(decltype(Event::type) EventTypeMin,decltype(Event::type) EventTypeMax);
|
||||||
|
bool EnableEvent(decltype(Event::type) EventType);
|
||||||
|
bool DisableEvent(decltype(Event::type) EventType);
|
||||||
|
bool IsEventEnabled(decltype(Event::type) EventType);
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@ -20,6 +23,7 @@ typedef struct
|
||||||
}LooperID;
|
}LooperID;
|
||||||
|
|
||||||
bool operator == (const LooperID&,const LooperID&);
|
bool operator == (const LooperID&,const LooperID&);
|
||||||
|
bool operator != (const LooperID&,const LooperID&);
|
||||||
|
|
||||||
class Looper
|
class Looper
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user