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.
Notice any errors or typos? Please let us know. Please feel free to edit src/core/p5.Element.js and open a pull request!