WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-22-2018, 08:08 AM
natstj natstj is offline
Member
 
Join Date: Aug 2018
Posts: 7
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!
Reply With Quote
  #2  
Old 09-01-2018, 12:01 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changes in vizdlg or vizact in Vizard 5? mape2k Vizard 2 12-10-2014 05:58 AM
vizact move action andreionutz Vizard 13 11-19-2014 02:54 AM
Vizact onupdate events that wont be disabled Reca Vizard 1 11-16-2011 05:25 PM
vizact parallel behavior njstaley Vizard 2 05-14-2010 11:55 AM
vizact Vinicius Lima Vizard 1 08-01-2007 02:10 PM


All times are GMT -7. The time now is 12:34 PM.


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