mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add input buffering framework
Input buffering is implicitly used by event accumulation, but this commit makes it more generic so it can be enabled for other uses. For desktop OSs it's currently not feasible given main and UI threads are the same).
This commit is contained in:
parent
7c864d41c9
commit
dc187324be
7 changed files with 34 additions and 18 deletions
|
|
@ -2587,6 +2587,11 @@ bool Main::iteration() {
|
|||
|
||||
iterating--;
|
||||
|
||||
// Needed for OSs using input buffering regardless accumulation (like Android)
|
||||
if (Input::get_singleton()->is_using_input_buffering()) {
|
||||
Input::get_singleton()->flush_buffered_events();
|
||||
}
|
||||
|
||||
if (fixed_fps != -1) {
|
||||
return exit;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue