View Full Version : vizact sensor functions

08-22-2018, 08:08 AM
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!

09-01-2018, 12:01 AM
The easiest way to do this is create an event (https://docs.worldviz.com/vizard/latest/#vizconnect_events.htm) 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.