public bool RunEventLoop(bool commandExecution)
{
SystemEvent ev;
while(true)
{
if(commandExecution == true)
{
// execute any bound commands before processing another event
idE.CmdSystem.ExecuteCommandBuffer();
}
ev = GetEvent();
// if no more events are available
if(ev.Type == SystemEventType.None)
{
return false;
}
ProcessEvent(ev);
}
return false; // never reached
}
#endregion