aboutsummaryrefslogtreecommitdiff
path: root/src/CGEditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/CGEditor.cpp')
-rw-r--r--src/CGEditor.cpp10
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