The wording “for events not pushed from the main thread” makes me unsure if the OS will send any events from outside of the main thread. Is this the case on any platforms? Below is the long version
I use multiple threads in my app, but it’s for IPC which has nothing to do with SDL.
If I’m in SDL_AppIterate iterating over a menu and I get SDL_AppEvent concurrently, it sounds like I can get a frame where no cursor is highlighted (event set the cursor to a previous item) or two cursors (cursor moved to next item).
Do I have to use locks to make this safe? Is it possible to have all events on the main thread? I know there’s limitations with apps and web so I’d like to know if locks are my only option if I want to support those platforms?