I want to make the mouse turn the camera, when the opengl window is active (focused),
but the gainedFocus and lostFocus events are not reliable, often they come when they shouldnt, or they dont come when they should.
like when switching from windowed mode to fullscreen or vice versa, I always get lostFocus.
Is there any way to check wether the app has focus or not ? couldnt find anything except for the events.