WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Callback function name backward incompatibility (https://forum.worldviz.com/showthread.php?t=941)

Jerry 12-20-2006 12:37 PM

Callback function name backward incompatibility
 
I notice that when you delcare a callback, e.g.,

viz.callback(viz.KEYDOWN_EVENT, myKey)

you can no longer put the function name in single quotes, e.g.,

viz.callback(viz.KEYDOWN_EVENT, 'myKey').

Is it possible to make both versions work in Viz3. Otherwise I will have
to change it in all the scripts I've written in Viz2.

farshizzo 12-20-2006 12:39 PM

Vizard 3.0 will only accept a function pointer, but once you make this change it will still work with Vizard 2.x


All times are GMT -7. The time now is 09:36 AM.

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