diff --git a/MiniEngine_Event.cpp b/MiniEngine_Event.cpp index d5ed6d8..b3e38db 100644 --- a/MiniEngine_Event.cpp +++ b/MiniEngine_Event.cpp @@ -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 ; } +bool operator != (const LooperID& a,const LooperID& b) +{ + return !(a==b); +} + Looper::Looper() { _update=_running=true; diff --git a/MiniEngine_Event.h b/MiniEngine_Event.h index 8074765..0d000e5 100644 --- a/MiniEngine_Event.h +++ b/MiniEngine_Event.h @@ -12,6 +12,9 @@ int PushEvent(const Event& refEvent); void PumpEvents(); bool HasEvent(decltype(Event::type) EventType); 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 { @@ -20,6 +23,7 @@ typedef struct }LooperID; bool operator == (const LooperID&,const LooperID&); +bool operator != (const LooperID&,const LooperID&); class Looper {