# mouseClicked() not working

**URL:** <https://discourse.processing.org/t/mouseclicked-not-working/4004>\
**Category:** Processing for Android\
**Created:** [October 1, 2018, 4:55am UTC](https://discourse.processing.org/t/mouseclicked-not-working/4004 "2018-10-01T04:55:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darkar25](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@Darkar25](https://discourse.processing.org/u/Darkar25)\
**Post date:** [October 1, 2018, 4:55am UTC](https://discourse.processing.org/t/mouseclicked-not-working/4004/1 "2018-10-01T04:55:11Z")

</div>

Why mouseClicked() not working on APDE?  
Im using APDE 0.5.0  
Code:  
[https://pastebin.com/91wyHgzY](https://pastebin.com/91wyHgzY)

---

<div class="post-metadata">

**Author:** ![Sarah](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sarah/32/1675_2.png) [@Sarah](https://discourse.processing.org/u/Sarah)\
**Post date:** [October 1, 2018, 5:03am UTC](https://discourse.processing.org/t/mouseclicked-not-working/4004/2 "2018-10-01T05:03:03Z")

</div>

Please include your code, version, and what mode you are using.

For more info check out:  
[https://processing.org/reference/mouseClicked\_.html](https://processing.org/reference/mouseClicked_.html)

---

<div class="post-metadata">

**Author:** ![Darkar25](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@Darkar25](https://discourse.processing.org/u/Darkar25)\
**Post date:** [October 1, 2018, 5:12am UTC](https://discourse.processing.org/t/mouseclicked-not-working/4004/3 "2018-10-01T05:12:53Z")

</div>

Included version,code.

---

<div class="post-metadata">

**Author:** ![TheWizardBear](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/thewizardbear/32/3552_2.png) [@TheWizardBear](https://discourse.processing.org/u/TheWizardBear)\
**Post date:** [October 1, 2018, 6:12pm UTC](https://discourse.processing.org/t/mouseclicked-not-working/4004/4 "2018-10-01T18:12:37Z")

</div>

Because it is on a touchscreen device, where touch behavior is different to mouse behavoir, there is a different set of functions to use rather than `mousePressed()`, `mouseReleased()` and `mouseMoved().`

Namedly they are:  
`touchStarted()`  
`touchEnded()`  
`touchMoved()`

Also the `mousePressed` (`mouseIsPressed` in p5) is `touchIsStarted`.

It is documented [here](https://android.processing.org/reference/multitouch/events.html).

---

<div class="post-metadata">

**Author:** ![Darkar25](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@Darkar25](https://discourse.processing.org/u/Darkar25)\
**Post date:** [October 6, 2018, 9:00pm UTC](https://discourse.processing.org/t/mouseclicked-not-working/4004/5 "2018-10-06T21:00:55Z")

</div>

thank you.i found that documantaion before you wrote that comment,but thx)
