SDL window focus
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,