Writing code is one thing; making it run smoothly at 60fps on a phone is another.
Desktop Processing uses mouseX and mousePressed . Mobile Processing upgrades this to . Instead of tracking one mouse, you track pointers. Writing code is one thing; making it run