संदर्भ touchStarted()

touchStarted()

Calls a function when the element is touched.

Calling myElement.touchStarted(false) disables the function.

Note: Touch functions only work on mobile devices.

उदाहरण

सिंटैक्स

touchStarted(fxn)

पैरामीटर्स

fxn
Function|Boolean:

function to call when the touch starts. 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!

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