Skip to content

waitforbuttonpress

gui · scripts/gui/waitforbuttonpress.m

: b = waitforbuttonpress ()

Block until the user clicks a mouse button or presses a key in the current figure.

b is 0 after a mouse click and 1 after a key press.