WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   vizact sensor functions (https://forum.worldviz.com/showthread.php?t=6183)

natstj 08-22-2018 08:08 AM

vizact sensor functions
 
I am trying to adapt a script from key input to sensor input. I need to program a function while a sensor (an oculus remote button) is down, so a task repeats for the amount of time the button is held down. Unlike the whilekeydown function, I have only been able to find an onsensordown function. Does anyone have advice for going about this? Thank you!

Jeff 09-01-2018 12:01 AM

The easiest way to do this is create an event in vizconnect that's mapped to the oculus button. The mapping can be set so the callback function in the application script is called only once or continuously while the button is down.


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

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