リファレンス touchStarted()

touchStarted()

要素がタッチされたときに関数を呼び出します。

myElement.touchStarted(false)を呼び出すと、関数が無効になります。

注意:タッチ機能はモバイルデバイスでのみ動作します。

実例

シンタックス

touchStarted(fxn)

パラメーター

fxn
Function|Boolean:

タッチが開始されたときに呼び出す関数。 falseを指定すると関数が無効になります。

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

関連するリファレンス