Simple question: how do you check to see if the Leadwerks window is in focus?
I ask because I use the example code for mouse look in an FPS, which involves the following code:
MoveMouse(GraphicsWidth()/2,GraphicsHeight()/2);
If you Alt-Tab away, that line of code remains active and continues to lock the mouse. I'd like to turn that line of code off if the application is not in focus. (I use int main(), if it matters.) Thanks.