Vizard 8 » Command Index » Vizard modules » viztask » <viztask>.waitSensorDown
8.0

<viztask>.waitSensorDown

Wait for a specified sensor button press

<viztask>.waitSensorDown(  
sensor  
button  
)  
sensor
A sensor object, list of sensors, or None to wait for any sensor
button
The button on the sensor to wait for.

If button is a sequence, then the Condition will wait for one of the buttons to be pressed.

If button is None, then the Condition will wait for any button on the sensor to be pressed.

Remarks

This command will create a Condition object that will wait for one of the specified sensor buttons to be pressed.

The yielded command returns a viz.Data object with the following information about the condition:

Properties

button

The sensor button that was pressed

sensor

The sensor object

Return Value

viztask.Condition object