WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rating: Thread Rating: 7 votes, 5.00 average. Display Modes
Old 04-10-2014, 10:05 AM
gmu12 gmu12 is offline
Join Date: Apr 2014
Posts: 2
Joystick Nav Vizard4 vs Vizard 5

Hello there,

I recently updated to Vizard 5, but now the code I was using for my joystick no longer works. I've tried following the joystick instructions for Vizard 5, but I can get it the joystick to function like I need it to (i.e., like it did in Vizard 4).

Any help would be appreciated. Thanks!

The code I used in Vizard 4 is below. Vizard 5 gives the error "no module named sid":

def mytimer(num):
		y = sid.get()[1]
		x = sid.get()[0]
		twist = (180.0 / math.pi) * (sid.aux()[3])
		if math.fabs(y) > 0.5:
		if math.fabs(x) > 0.5:
		if math.fabs(twist) > 20:
Reply With Quote
Old 04-10-2014, 11:07 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,471
The sid module for connecting to gamepad devices is quite old and has been removed from Vizard 5. The vizjoy module replaced sid and is documented in both Vizard 3 and 4. Now in Vizard 5, the recommended way to connect to a DirectInput compatible gamepad and joystick device is using the DirectInput plug-in.

Have you tried the or other example scripts included with Vizard?
Reply With Quote
Old 04-14-2014, 10:23 AM
gmu12 gmu12 is offline
Join Date: Apr 2014
Posts: 2
Thanks, that worked!
Reply With Quote

joystick, vizard 5.0

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
Realistic Light and Shadows Using Vizard and 3DS Max jde Vizard 4 07-13-2012 10:58 AM
joystick position nmohandes Vizard 2 01-16-2012 10:03 AM
Vizard 4 Beta Testing farshizzo Announcements 0 02-01-2011 10:46 AM
Vizard 4 Beta Testing farshizzo Vizard 0 02-01-2011 10:46 AM
Vizard tech tip: Using the Python Imaging Library (PIL) Jeff Vizard 0 03-23-2009 11:13 AM

All times are GMT -7. The time now is 09:21 PM.

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