You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Clean Input::frame_parsed_events before de-initialising scripting languages to ensure no script created events exist at the exit.
This commit is contained in:
@@ -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_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user