mirror of
https://gitlab.com/manzerbredes/cgeditor.git
synced 2025-04-19 03:59:44 +00:00
Simplify editor events processing
This commit is contained in:
parent
31c332da9a
commit
f5c83d0609
3 changed files with 17 additions and 9 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue