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