Mouse_Button_Pressed(Which_Button)
Mouse_Button_Pressed is a function that returns true if the mouse button has been pressed since the last call to Get_Mouse_Button or Wait_For_Mouse_Button (or since Open_Graph_Window if neither has not been called). This is often used to test whether or not to call Get_Mouse_Button.
Which_Button must be either Left_Button or Right_Button.
If Mouse_Button_Pressed returns true, subsequent calls to Mouse_Button_Pressed will also return true if no intervening calls to Get_Mouse_Button or Wait_For_Mouse_Button have taken place.
Notes: A graphics window must be open when Mouse_Button_Pressed is called or a run-time error will occur. If the RaptorGraph window is not on top, the user may have to click on it once before it will respond to user mouse clicks.
Example: