WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 4 votes, 4.50 average. Display Modes
  #1  
Old 03-01-2005, 08:45 AM
baf1 baf1 is offline
Member
 
Join Date: Mar 2005
Posts: 6
problem with joystick data and input dialog box

So i have this timer function that gets my position data from a joystick in order to move an object around the screen, but when i have an input dialop box appear, the timer function stops collecting the joystick data. the even odder part of this bug is that on my more complicated script with 2 joysticks only one of the joysticks stops working, which is the one i used sid.get() on not the other one i added. does anyoen knwo whats up with that?
Reply With Quote
  #2  
Old 03-01-2005, 10:20 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Are you using Vizards builtin input dialog box? If so, this will cause the simulation to come to a halt until the dialog box goes away.
Reply With Quote
  #3  
Old 03-01-2005, 11:42 AM
baf1 baf1 is offline
Member
 
Join Date: Mar 2005
Posts: 6
yes i am using the built in dialog box, but even after it goes away it does not collect anymore data from the joystick. moreover, i have one script running with 2 joysticks, one of them i just used sid.get and for the other i used sid.add to add the other joystick. once the dialog box went away, the sid.add joystick was functioning properly, but i couldnt get any information from the sid.get joystick. i tried to see what was up with this but writing a simpler script where i only used one joystick with sid.get and here its also stop collecting data once the dialog box went away.
Reply With Quote
  #4  
Old 03-02-2005, 12:27 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Try importing the sid library after you call viz.go(). Example:
Code:
viz.go()
import sid
.
.
Reply With Quote
  #5  
Old 03-03-2005, 08:00 AM
baf1 baf1 is offline
Member
 
Join Date: Mar 2005
Posts: 6
Thanks a lot that seemed to work.
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


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


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