LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   SDL window focus (https://www.linuxquestions.org/questions/programming-9/sdl-window-focus-100719/)

rebelcan 10-06-2003 01:58 AM

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

kev82 10-06-2003 07:36 AM

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.