संदर्भ mouseClicked()

mouseClicked()

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.

उदाहरण

सिंटैक्स

mouseClicked(fxn)

पैरामीटर्स

fxn
Function|Boolean:

function to call when the mouse is pressed and released over the element. false disables the function.

This page is generated from the comments in src/core/p5.Element.js . Please feel free to edit it and submit a pull request!

संबंधित संदर्भ