View Single Post
  #1  
Old 01-31-2004, 08:06 AM
Plasma Plasma is offline
Member
 
Join Date: Jan 2004
Posts: 22
Another Joystick Question

I'm trying to get Vizard to print the user's yaw and positional information when the joystick trigger is pulled. I've used the sid.get() command to determine that the trigger is button number 1.

However, when I to call on that button using something like this:

if data[2] == viz.BUTTON_1:
print yaw,pos

it returns the following message:

AttributeError: 'module' object has no attribute 'BUTTON_1'

How does Vizard call on joystick buttons?

Thanks!
Reply With Quote