summaryrefslogtreecommitdiffstats
path: root/core/input/input.cpp
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2024-05-20 11:20:00 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2024-05-30 13:23:00 +0300
commit2c9df769adfb9824dbdf9c5355aa9f7e16438066 (patch)
tree2d5bf660c964f06baf40808c794ac66c3368cb6e /core/input/input.cpp
parent60844997bb2981c44e3b4396ab2918df90f13c97 (diff)
downloadredot-engine-2c9df769adfb9824dbdf9c5355aa9f7e16438066.tar.gz
Clean Input::frame_parsed_events before de-initialising scripting languages to ensure no script created events exist at the exit.
Diffstat (limited to 'core/input/input.cpp')
-rw-r--r--core/input/input.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/input/input.cpp b/core/input/input.cpp
index a8409cc06d..4642ab5f90 100644
--- a/core/input/input.cpp
+++ b/core/input/input.cpp
@@ -1029,6 +1029,14 @@ void Input::parse_input_event(const Ref<InputEvent> &p_event) {
}
}
+#ifdef DEBUG_ENABLED
+void Input::flush_frame_parsed_events() {
+ _THREAD_SAFE_METHOD_
+
+ frame_parsed_events.clear();
+}
+#endif
+
void Input::flush_buffered_events() {
_THREAD_SAFE_METHOD_