Closed a-day-old-bagel closed 8 years ago
Ok, I figured it out. Due to hints dropped in this ancient thread I moved the initialization of the SDL window to the UserInput system (which runs on a different thread than the graphics system where the window was before). The gl context is still created in the graphics thread.
I did this because, while linux allows different threads to all pull from the same event queue (that's default behavior), windows gives each thread its own event queue. For SDL, all input events were going to the graphics thread (since that's where the window was created) but there was no event handling going on there, so all input just kinda went unnoticed.
Now the events go to the correct thread, and nothing else appears to have broken! A miracle!
there are lots of issues with threads when compiling on Windows. for one thing, no input appears to be received.