Merge pull request #92201 from bruvzg/input_flush

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:
Rémi Verschelde
2024-05-30 15:41:56 +02:00
3 changed files with 17 additions and 0 deletions

View File

@ -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_