# Get button from mouse event

**URL:** <https://forum.juce.com/t/get-button-from-mouse-event/44779>\
**Category:** General JUCE discussion\
**Created:** [March 3, 2021, 5:31pm UTC](https://forum.juce.com/t/get-button-from-mouse-event/44779 "2021-03-03T17:31:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nfect](https://avatars.discourse-cdn.com/v4/letter/n/a6a055/32.png) [@nfect](https://forum.juce.com/u/nfect)\
**Post date:** [March 3, 2021, 5:31pm UTC](https://forum.juce.com/t/get-button-from-mouse-event/44779/1 "2021-03-03T17:31:31Z")

</div>

is there a proper way to retrieve which mouse button the mouse event is related to, without going through event.mods ? Something like event.mouseButton::Left/rRight/Middle,…

---

<div class="post-metadata">

**Author:** ![jakemumu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jakemumu/32/13038_2.png) [@jakemumu](https://forum.juce.com/u/jakemumu)\
**Post date:** [March 3, 2021, 6:42pm UTC](https://forum.juce.com/t/get-button-from-mouse-event/44779/2 "2021-03-03T18:42:19Z")

</div>

what’s wrong with the mods?

`event.mods.isLeftButtonDown()`

---

<div class="post-metadata">

**Author:** ![nfect](https://avatars.discourse-cdn.com/v4/letter/n/a6a055/32.png) [@nfect](https://forum.juce.com/u/nfect)\
**Post date:** [March 3, 2021, 6:56pm UTC](https://forum.juce.com/t/get-button-from-mouse-event/44779/3 "2021-03-03T18:56:58Z")

</div>

event.mods.isLeftButtonDown() does not update if another mouse button is pressed. And I not only need to know if the left button is down, I need to know if the right and middle button get pressed/released/…
