Skip to content
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

Merged

Conversation

Sauermann
Copy link
Contributor

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)

@Sauermann Sauermann requested review from a team as code owners May 24, 2023 21:25
Copy link
Member

@RedworkDE RedworkDE left a 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

@Sauermann
Copy link
Contributor Author

Thanks, I wasn't aware of that flag.

@Sauermann Sauermann force-pushed the fix-deprecate-push-unhandled-input branch from 914705d to e96b225 Compare May 24, 2023 22:09
@Chaosus Chaosus added this to the 4.1 milestone May 27, 2023
@Sauermann Sauermann force-pushed the fix-deprecate-push-unhandled-input branch from e96b225 to 18d51ad Compare May 30, 2023 22:50
@RandomShaper
Copy link
Member

LGTM, AFAICT. TIWAGOS, though,

doc/classes/Viewport.xml Outdated Show resolved Hide resolved
@Sauermann Sauermann force-pushed the fix-deprecate-push-unhandled-input branch from 18d51ad to 704495b Compare May 31, 2023 17:06
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.
@Sauermann Sauermann force-pushed the fix-deprecate-push-unhandled-input branch from 704495b to 6d490ce Compare May 31, 2023 17:07
@akien-mga akien-mga merged commit d998323 into godotengine:master May 31, 2023
13 checks passed
@Sauermann Sauermann deleted the fix-deprecate-push-unhandled-input branch May 31, 2023 22:45
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants