diff options
author | chai <chaifix@163.com> | 2021-11-11 10:29:17 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-11 10:29:17 +0800 |
commit | de46b91a524c5f2c8e72b379f2900afe34ccb815 (patch) | |
tree | 365122dc27fd1cdcd80939c63ea248e90716c641 /Editor/GUI/GUIWindow.cpp | |
parent | f706f0e17ac2e7893feddc96b496db89f35e94a8 (diff) |
*misc
Diffstat (limited to 'Editor/GUI/GUIWindow.cpp')
-rw-r--r-- | Editor/GUI/GUIWindow.cpp | 3 |
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); |