Cleanup Android input on render thread settings

Follow up to https://github.com/godotengine/godot/pull/93933
Clean up the set of settings use to control whether Android input should be dispatched on the render thread.

Addresses comments in https://github.com/godotengine/godot/pull/93933#issuecomment-2210437977
This commit is contained in:
Fredia Huya-Kouadio
2024-07-07 14:16:29 -07:00
parent f3af22b10b
commit 5e59819727
17 changed files with 63 additions and 89 deletions

View File

@@ -1022,7 +1022,7 @@ void Input::parse_input_event(const Ref<InputEvent> &p_event) {
if (buffered_events.is_empty() || !buffered_events.back()->get()->accumulate(p_event)) {
buffered_events.push_back(p_event);
}
} else if (use_input_buffering) {
} else if (agile_input_event_flushing) {
buffered_events.push_back(p_event);
} else {
_parse_input_event_impl(p_event, false);
@@ -1053,12 +1053,12 @@ void Input::flush_buffered_events() {
}
}
bool Input::is_using_input_buffering() {
return use_input_buffering;
bool Input::is_agile_input_event_flushing() {
return agile_input_event_flushing;
}
void Input::set_use_input_buffering(bool p_enable) {
use_input_buffering = p_enable;
void Input::set_agile_input_event_flushing(bool p_enable) {
agile_input_event_flushing = p_enable;
}
void Input::set_use_accumulated_input(bool p_enable) {