Warn users about unsafe usage of InputEvent

This commit is contained in:
Pedro J. Estébanez 2023-01-19 13:18:34 +01:00
parent 14fdd28de9
commit a2af839a59
2 changed files with 29 additions and 0 deletions

View file

@ -222,6 +222,10 @@ private:
void _parse_input_event_impl(const Ref<InputEvent> &p_event, bool p_is_emulated);
List<Ref<InputEvent>> buffered_events;
#ifdef DEBUG_ENABLED
HashSet<Ref<InputEvent>> frame_parsed_events;
uint64_t last_parsed_frame = UINT64_MAX;
#endif
friend class DisplayServer;