SDL window focus
heyo all,
i'm getting into C++ to do some game programing, and i'm using SDL to make things all the much easier on me. i'm trying to figure out how to tell if my programe's window is the window that has focus, so that the game automatically pauses when the user leaves the window. any hints or tricks? thanks a bunch, rebelcan |
i havnt got any man pages in front of me but from the docs on the website it looks to me as though this might be a good function to start looking at in response to the SDL_SysWMEvent Event.
int SDL_GetWMInfo(SDL_SysWMinfo *info); |
All times are GMT -5. The time now is 03:50 PM. |