संदर्भ mousePressed()

mousePressed()

Calls a function when the mouse is pressed over the element.

Calling myElement.mousePressed(false) disables the function.

Note: Some mobile browsers may also trigger this event when the element receives a quick tap.

उदाहरण

सिंटैक्स

mousePressed(fxn)

पैरामीटर्स

fxn
Function|Boolean:

function to call when the mouse is pressed 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!

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