Simplify editor events processing

This commit is contained in:
Loic Guegan 2023-01-02 08:10:43 +01:00
parent 31c332da9a
commit f5c83d0609
3 changed files with 17 additions and 9 deletions

View file

@ -71,15 +71,9 @@ private:
Refresh();
}
// Now handle event
bool redraw=false;
// Now handle generated events from last user inputs
Update();
for(const cgeditor::Event &e: status.Events){
HandleEvent(e);
redraw=true;
}
status.Events.clear();
if(redraw){
if(ProcessEvents()){
Refresh();
}
}