Media Summary: This video demonstrates how the main animation loop can be interrupted by an "event", such as a mouse press or keyPressed, individual keys for keyPressed and void keyPressed() Making Android Games with Java/Processing : Checking Collisions and Boundary
Keypressed Android With Processing - Detailed Analysis & Overview
This video demonstrates how the main animation loop can be interrupted by an "event", such as a mouse press or keyPressed, individual keys for keyPressed and void keyPressed() Making Android Games with Java/Processing : Checking Collisions and Boundary Taking action while the mouse is being pressed (i.e. when you are dragging/holding the mouse button down) in Use mousePressed, mouseX, and mouseY to interactively draw on the canvas with the Smartphone Processing Program Frontline Processing
Make a pong game , very easy tutorial .... Just download the code run it and your gane is ready...small project to start with.