Wait for a specified mouse button press
| <viztask>.waitMouseDown( | |
| button |
)
button
The mouse button to wait for.
If button is None, then the Condition will wait for any mouse button to be pressed.
This command will create a Condition object that will wait for one of the specified mouse buttons to be pressed.
The yielded command returns a viz.Data object with the following information about the Condition:
Properties |
|
button |
The mouse button that was pressed |
time |
The precise time of the mouse button press |
viztask.Condition object
Example 1
Example 2