I'm developing a game that is mixed with winforms (for the map editor). The problem I am facing is that even if the main game window isn't in focus, it still receives mouse change events (such as clicking and moving the mouse).
Is there a way to make sure my application is in focus before continuing on to handle these events are is there some kind of built in method?
Thanks!