P5js Methods for Mouse and touch interaction

Mouse and touch interaction

p5.js has a set of methods for handling mouse and touch interaction. The list below shows how they relate conceptually.

From https://github.com/processing/p5.js/wiki/p5.js-overview#createcanvas

mouse touch
mouseX touchX
mouseY touchY
mousePressed() touchStarted()
mouseDragged() touchMoved()
mouseReleased() touchEnded()

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s