From 31c332da9ab426daa73b68772d0ef9c1b0744a50 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sun, 1 Jan 2023 17:25:27 +0100 Subject: Decouple editor event from the Draw class --- src/CGEditor.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/CGEditor.cpp') diff --git a/src/CGEditor.cpp b/src/CGEditor.cpp index 4edf95e..737db39 100644 --- a/src/CGEditor.cpp +++ b/src/CGEditor.cpp @@ -40,12 +40,6 @@ void CGEditor::Draw() { DrawComponent(SBH); DrawComponent(ME); - // Handle events - for (Event &e : status.Events) { - HandleEvent(e); - } - status.Events.clear(); - // Update mouse events status.LeftClick = false; status.RightClick = false; -- cgit v1.2.3