diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-02 08:10:43 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-02 08:10:43 +0100 |
| commit | f5c83d0609d2fd2030a2339a4a7d75d96fdf1b15 (patch) | |
| tree | 4daf0f82129cfdb8a97578cfa03dded6e5e08c12 /src/CGEditor.cpp | |
| parent | 31c332da9ab426daa73b68772d0ef9c1b0744a50 (diff) | |
Simplify editor events processing
Diffstat (limited to 'src/CGEditor.cpp')
| -rw-r--r-- | src/CGEditor.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/CGEditor.cpp b/src/CGEditor.cpp index 737db39..2da0520 100644 --- a/src/CGEditor.cpp +++ b/src/CGEditor.cpp @@ -92,4 +92,14 @@ void CGEditor::DrawComponent(Component *c) { } } +bool CGEditor::ProcessEvents(){ + bool processed=false; + for(const cgeditor::Event &e: status.Events){ + HandleEvent(e); + processed=true; + } + status.Events.clear(); + return processed; +} + } // namespace cgeditor
\ No newline at end of file |
