# Detect the mouse click 1, 2 and 3... possible?

**URL:** <https://forum.kirupa.com/t/detect-the-mouse-click-1-2-and-3-possible/190503>\
**Category:** Uncategorized\
**Created:** [June 12, 2006, 1:26pm UTC](https://forum.kirupa.com/t/detect-the-mouse-click-1-2-and-3-possible/190503 "2006-06-12T13:26:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trevorsaint](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/trevorsaint/32/268_2.png) [@trevorsaint](https://forum.kirupa.com/u/trevorsaint)\
**Post date:** [June 12, 2006, 1:26pm UTC](https://forum.kirupa.com/t/detect-the-mouse-click-1-2-and-3-possible/190503/1 "2006-06-12T13:26:16Z")

</div>

Is there a way in which a button can detect the first click, the second click and the third click.

So basically if I wanted to perform an action on the first click, the second and the third, i.e a zoom in function, is there a way using some sort of listener to determine this.

For example a zoom in and a zoom out function.

Any help would be good
