# How to tell if the mouse is over the window?

**URL:** https://discourse.processing.org/t/how-to-tell-if-the-mouse-is-over-the-window/5285
**Category:** Processing
**Created:** [November 7, 2018, 2:12am UTC](https://discourse.processing.org/t/how-to-tell-if-the-mouse-is-over-the-window/5285 "2018-11-07T02:12:11Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Angle](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/angle/32/2026_2.png) [@Angle](https://discourse.processing.org/u/Angle)
#### Post date: [November 8, 2018, 1:54am UTC](https://discourse.processing.org/t/how-to-tell-if-the-mouse-is-over-the-window/5285/5 "2018-11-08T01:54:38Z")

</div>

Alright, I added this functionality myself with:

```auto
public boolean mousePresent = true;
    
    public void mouseExited() {
    	mousePresent = false;
    }
    
    public void mouseEntered() {
    	mousePresent = true;
    }

```

---

_[View the full topic](https://discourse.processing.org/t/how-to-tell-if-the-mouse-is-over-the-window/5285)._
