-
-
Notifications
You must be signed in to change notification settings - Fork 22k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate push_unhandled_input #77452
Deprecate push_unhandled_input #77452
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-<method name="push_unhandled_input">
+<method name="push_unhandled_input" is_deprecated="true">
To properly flag the method as deprecated in the docs
Thanks, I wasn't aware of that flag. |
914705d
to
e96b225
Compare
e96b225
to
18d51ad
Compare
LGTM, AFAICT. TIWAGOS, though, |
18d51ad
to
704495b
Compare
The functionality of `push_unhandled_input` has changed so that it no longer propagates input events to SubViewports. This makes it less predictable and it should be deprecated in favor of `push_input` which provides the same functionality and more. Also this deprecation simplifies the Viewport-API by reducing the methods for pushing input events, so that users don't need to worry about when to use which function in order to insert input events.
704495b
to
6d490ce
Compare
Thanks! |
Sorry for digging this up, but what if we don't want to propagate the input event to subviewports and embedded windows? I'm not sure there's an obvious way to do so without relying on the deprecated push_unhandled_input. |
@tangx246 yes, it is better to ask such usage questions in other places, since bugs should be discussed here, but you might want to look into the documentation |
The functionality of
push_unhandled_input
has changed so that it no longer propagates input events to SubViewports.This makes it less predictable and it should be deprecated in favor of
push_input
which provides the same functionality and more.Also this deprecation simplifies the Viewport-API by reducing the methods for pushing input events, so that users don't need to worry about when to use which function in order to insert input events.
Implement #76926 (comment)