Documentation: Unify deprecations

This commit is contained in:
Danil Alexeev 2023-06-06 11:27:29 +03:00
parent e7d2e49688
commit b433020aa6
No known key found for this signature in database
GPG key ID: 124453E157DA8DC7
12 changed files with 23 additions and 18 deletions

View file

@ -3008,9 +3008,9 @@ void Viewport::push_input(const Ref<InputEvent> &p_event, bool p_local_coords) {
#ifndef DISABLE_DEPRECATED
void Viewport::push_unhandled_input(const Ref<InputEvent> &p_event, bool p_local_coords) {
ERR_MAIN_THREAD_GUARD;
ERR_FAIL_COND(p_event.is_null());
WARN_DEPRECATED_MSG(R"*(The "push_unhandled_input()" method is deprecated, use "push_input()" instead.)*");
ERR_FAIL_COND(!is_inside_tree());
WARN_DEPRECATED_MSG(R"(The "push_unhandled_input" method is deprecated, use "push_input" instead.)");
ERR_FAIL_COND(p_event.is_null());
local_input_handled = false;