You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user