WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-04-2011, 01:19 PM
EnvisMJ EnvisMJ is offline
Member
 
Join Date: May 2009
Location: Purdue University, West Lafayette, Indiana
Posts: 44
2nd Analog Stick on Gamepad

We're using a Logitech Wirless Gamepad F710, the default code allows me to access all 12 button inputs and the left analog stick. (Sweet!)

But I'm trying to get input from the second analog stick, and I keep getting "WARNING: Failed to connect to joystick" in the console when I try to add the second one using the code below:
Code:
import vizjoy
#Add a joystick. This will return the first detected joystick
joy = vizjoy.add()
joy2 = vizjoy.add()

#Initialize global joystick position variable
joyPOS = [.00001,.00001]

#Record the position of the joystick in for use in onTimer function
def joyMove( e ):
    global joyPOS
    #Save position in global
    joyPOS = e.pos
   
#If the joystick position changed, call joyMove
viz.callback( vizjoy.MOVE_EVENT, joyMove )
Any suggestions?
Reply With Quote
 

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
gamepad problem shai Vizard 1 08-25-2005 01:09 PM
input & gamepad dominic Vizard 1 08-15-2005 04:01 PM
gamepad dominic Vizard 1 08-15-2005 10:14 AM


All times are GMT -7. The time now is 11:52 AM.


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