The return value when a button is pressed

If the left mouse button is pressed when the mouse_b function is called (Listing 4):

If the right mouse button is pressed when the function is called:

(In C++, a non-zero integer value is interpreted as true.)