LWJGL hide mouse when over the window

I want to hide the mouse when it’s over the window, but show it again when it’s out of the window.

Right now I can only hide it using setGrabbed, but then the mouse will be always inside the window, and the else won’t run.

		if(Mouse.isInsideWindow()){
			Mouse.setGrabbed(true);
		}else{
			Mouse.setGrabbed(false);
		}

Try setting a transparent cursor image then it should be invisible but still there

How would you know it is still there if it is invisible? Quantum.

Maybe the world duplicates at every moment that you wonder that :slight_smile:

If I put quotes around that, would it be string theory?