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

iOS: Never queue application-level events #3905

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

madsmtm
Copy link
Member

@madsmtm madsmtm commented Sep 10, 2024

Events like resumed, new_events, about_to_wait, and so on will never happen as a result of programmer action, so we'll never need to queue those. This allows us to remove the need for the old Event struct in the iOS backend.

Furthermore, we can now remove InUserCallback, since that state is already stored inside EventHandler.

I've tried to otherwise keep the semantics as close to the original by calling handle_nonuser_events(mtm, []), which flushes pending events.

  • Tested on all platforms changed

@madsmtm madsmtm added DS - ios S - maintenance Repaying technical debt labels Sep 10, 2024
@madsmtm
Copy link
Member Author

madsmtm commented Sep 10, 2024

Incidentally, this fixes #3714, but makes #3816 much worse - not quite sure why yet? But will fix it separately from this, see #3906

Events like `resumed`, `new_events`, `about_to_wait`, and so on will
never happen as a result of programmer action, so we'll never need to
queue those. This allows us to remove the need for the old `Event`
struct in the iOS backend.

Furthermore, we can now remove `InUserCallback`, since that state is
already stored inside `EventHandler`.

I've tried to otherwise keep the semantics as close to the original by
calling `handle_nonuser_events(mtm, [])`, which flushes pending events.
@madsmtm madsmtm force-pushed the madsmtm/uikit-cleanup-event-handling2 branch from b81218b to fb9cd26 Compare September 10, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DS - ios S - maintenance Repaying technical debt
Development

Successfully merging this pull request may close these issues.

1 participant