# Checking if the mouse button is down

**URL:** <https://forum.kirupa.com/t/checking-if-the-mouse-button-is-down/84628>\
**Category:** flash\
**Created:** [March 29, 2005, 7:26am UTC](https://forum.kirupa.com/t/checking-if-the-mouse-button-is-down/84628 "2005-03-29T07:26:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![foodpk](https://avatars.discourse-cdn.com/v4/letter/f/0ea827/32.png) [@foodpk](https://forum.kirupa.com/u/foodpk)\
**Post date:** [March 29, 2005, 7:26am UTC](https://forum.kirupa.com/t/checking-if-the-mouse-button-is-down/84628/1 "2005-03-29T07:26:15Z")

</div>

I’ve been wondering about this for some time, is there a way to check if the mouse button is down similar to the isDown function in the Key object?

```auto
if(Key.isDown(Key.SPACE))

```

Is there a similar way to this one, or any at all, to check if the mouse is down?
