get_mbutton — Wait until a mouse button is pressed.
get_mbutton returns the pixel accurate image coordinates of the mouse pointer in the output window and the mouse button pressed. In addition the state of the modifier keys is returned. The following values are assigned to the individual buttons and keys:
The sum of the values for all pressed buttons/keys is returned in Button.
The operator waits until a mouse button is pressed in the output window. For graphics windows the coordinates Row and Column are expressed with consideration of the current image part (see set_part).
If subpixel accurate image coordinates are required, you can use the operator get_mbutton_sub_pix.
get_mbutton only returns if a mouse button is pressed in the window.
Row coordinate of the mouse cursor in the image coordinate system.
Column coordinate of the mouse cursor in the image coordinate system.
Mouse button(s) pressed.
get_mbutton returns the value 2 (H_MSG_TRUE).
get_mposition, get_mbutton_sub_pix, get_mposition_sub_pix