How to tell if the mouse is over the window?

Alright, I added this functionality myself with:

public boolean mousePresent = true;
    
    public void mouseExited() {
    	mousePresent = false;
    }
    
    public void mouseEntered() {
    	mousePresent = true;
    }
3 Likes