Просмотр исходного кода

Flush accumulated input events on iOS

Pedro J. Estébanez 3 лет назад
Родитель
Сommit
1b98e904d0
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      platform/iphone/display_server_iphone.mm

+ 1 - 0
platform/iphone/display_server_iphone.mm

@@ -195,6 +195,7 @@ void DisplayServerIPhone::window_set_drop_files_callback(const Callable &p_calla
 }
 
 void DisplayServerIPhone::process_events() {
+	Input::get_singleton()->flush_buffered_events();
 }
 
 void DisplayServerIPhone::_dispatch_input_events(const Ref<InputEvent> &p_event) {