WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   pausing non-timer callbacks (https://forum.worldviz.com/showthread.php?t=280)

vadrian 01-25-2005 12:29 PM

pausing non-timer callbacks
 
i want to pause all the OTHER callbacks (keyboard, sid, etc) but keep the timers going. basically, i need all animations to continue (via timers) but I want to prohibit all user input for x seconds (i also need the tracking to continue as well). thanks

adrian

farshizzo 01-25-2005 12:35 PM

Hi,

To disable a callback simply set the function to the value 0:
Code:

#Disable key board events
viz.callback(viz.KEYDOWN_EVENT,0)

Then to resume the callback set the function back to the original value:
Code:

viz.callback(viz.KEYDOWN_EVENT,onkeydown)


All times are GMT -7. The time now is 10:13 PM.

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