summaryrefslogtreecommitdiff
path: root/Editor/GUI/GUIWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Editor/GUI/GUIWindow.cpp')
-rw-r--r--Editor/GUI/GUIWindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Editor/GUI/GUIWindow.cpp b/Editor/GUI/GUIWindow.cpp
index 5aa598d..94dfe33 100644
--- a/Editor/GUI/GUIWindow.cpp
+++ b/Editor/GUI/GUIWindow.cpp
@@ -5,6 +5,7 @@
#include "Editor/Win/Win.h"
#include "Runtime/Math/Math.h"
#include "Runtime/Events/InputEvent.h"
+#include "Runtime/Scripting/ScriptingManager.h"
using namespace LuaBind;
@@ -261,6 +262,8 @@ void GUIWindow::ProcessEventMessages(UINT message, WPARAM wParam, LPARAM lParam)
{
InputEvent ie(message, wParam, lParam, m_Handle);
+ SCRIPT_GLOBAL.setCurrentEvent.Invoke(0);
+
LuaBind::State state = GetVM()->GetCurThread();
LuaBind::MemberInvoker invoker = LuaBind::MemberInvoker(state, this);