This sample illustrates how to read mouse button events and takes action for each event.