WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   WaitMouseDown or WaitTime (https://forum.worldviz.com/showthread.php?t=4244)

kovitch 05-17-2012 10:45 AM

WaitMouseDown or WaitTime
 
Hi,

If I use:
Code:

yield viztask.waitTime(10)
yield viztask.waitMouseUp(viz.MOUSEBUTTON_LEFT)

the application will wait 10 seconds and then it will expect a left mouse click to continue. It's sequencial.

How can I do something like:
Code:

if time_is_up or mouse_clicked:
    do_stuff()

using viztask?

Best regards,

Alex.

farshizzo 05-17-2012 10:52 AM

Have a look at the viztask.waitAny command in the documentation. It should do exactly what you want.

kovitch 05-17-2012 10:53 AM

You're right, it does! Thanks. :)


All times are GMT -7. The time now is 04:06 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC