Behavior when a mouse button is pressed
If either mouse button is pressed:
- The code in Listing 4 determines which
button is pressed and
- Takes the appropriate action based on that determination.
- The mouseInfo function returns true
- Causing the draw function to be called once during the current iteration of
the inner loop in Listing 2.