MCPcopy Index your code
hub / github.com/processing/p5.js / mouseClicked

Method mouseClicked

src/dom/p5.Element.js:1620–1623  ·  view source on GitHub ↗

* Calls a function when the mouse is pressed and released over the element. * * Calling `myElement.mouseReleased(false)` disables the function. * * Note: Some mobile browsers may also trigger this event when the element * receives a quick tap. * * @param {Function|Boolean} fxn

(fxn)

Source from the content-addressed store, hash-verified

1618 * }
1619 */
1620 mouseClicked(fxn) {
1621 Element._adjustListener('click', fxn, this);
1622 return this;
1623 }
1624
1625 /**
1626 * Calls a function when the mouse moves over the element.

Callers 3

setupSoundFunction · 0.80
p5.Element.jsFile · 0.80
pointerFunction · 0.80

Calls 1

_adjustListenerMethod · 0.80

Tested by

no test coverage detected