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
58a54f534e
commit
7be9c26e20
7 changed files with 37 additions and 18 deletions
|
|
@ -2217,6 +2217,11 @@ bool Main::iteration() {
|
|||
|
||||
iterating--;
|
||||
|
||||
// Needed for OSs using input buffering regardless accumulation (like Android)
|
||||
if (InputDefault::get_singleton()->is_using_input_buffering()) {
|
||||
InputDefault::get_singleton()->flush_buffered_events();
|
||||
}
|
||||
|
||||
if (fixed_fps != -1) {
|
||||
return exit;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue