Explain the instructions in the sample program.
Add an example program showing how to process the mouse events.