JS call for touchscreen input?

What script would I use in a conditional to trigger something whenever someone taps the touchscreen?


Thanks in advance.
Try some of these - they're slightly different ...


TouchInput.isPressed()


TouchInput.isTriggered()


TouchInput.isRepeated()


TouchInput.isLongPressed()
Try some of these - they're slightly different ...


TouchInput.isPressed()


TouchInput.isTriggered()


TouchInput.isRepeated()


TouchInput.isLongPressed()

As usual, thanks so much! 🙂
WOW, Super helpful! Thanks Shaz.

Original thread: https://forums.rpgmakerweb.com/threads/js-call-for-touchscreen-input.73722/