iOS: Refactor event handling to share code with macOS (#3865)

Instead of storing the event handler within the AppState, and extracting
it our every time we need it, we now use the same event handling
implementation as for macOS that ensures we don't re-entrantly call the
event handler, and that we un-register the handler again after we're
done using it (`UIApplicationMain` won't return, but may still unwind,
so this is very important for panic safety).
This commit is contained in:
Mads Marquart 2024-08-15 23:19:57 +02:00 committed by GitHub
parent 7fbc2118b6
commit a61e7bb4f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 147 additions and 219 deletions

View file

@ -5,7 +5,6 @@ mod app;
mod app_state;
mod cursor;
mod event;
mod event_handler;
mod event_loop;
mod ffi;
mod menu;