MATLAB Functions Help Desk

waitforbuttonpress

Purpose

Wait for key or mouse button press

Syntax

Description

k = waitforbuttonpress blocks the caller's execution stream until waitforbuttonpress detects a mouse button or key press while the cursor is over a Figure window. The function returns 0 if it detects a mouse button press or 1 if it detects a key press. Additional information about the event that resumes execution is available through the Figure's CurrentCharacter, SelectionType, and CurrentPoint properties.

See Also

dragrect, figure, gcf, ginput, rbbox, waitfor



[ Previous | Help Desk | Next ]