For a bit of context, I’m making an overlay to track controller inputs to capture in OBS using SDL2. Nothing ground breaking there but I thought it would be a fun little project for me. All was going well, I have a windowed controller overlay that handles controller input events both in and out of focus.
However, if a fullscreen game is launched, SDL no longer presents a new frame. The program is still handling the controller inputs and running through my rendering code, but the screen doesn’t update. Tabbing back out of the fullscreen game puts the SDL application back to displaying as it should.
Is there a way to have the application render regardless of the window state? (it would also be useful to render while minimized).
As a bit of an add, neither SDL_WINDOWEVENT_HIDDEN is queued or the SDL_WINDOW_HIDDEN flag is set when the full screen game is launched. The returned window flag is 0x24.
Sorry it’s a little long winded but after a few hours of googling I haven’t been able to find a solution. Any help would be appreciated!