View Single Post
  #1   Spotlight this post!  
Unread 16-01-2012, 03:01
CardcaptorRLH85's Avatar
CardcaptorRLH85 CardcaptorRLH85 is offline
The master of the cards ^_^
AKA: Raa'Shaun H.
FRC #0322 (F.I.R.E. "Flint Inspires Real Engineers")
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Michigan, USA
Posts: 59
CardcaptorRLH85 is an unknown quantity at this point
Send a message via ICQ to CardcaptorRLH85 Send a message via AIM to CardcaptorRLH85 Send a message via MSN to CardcaptorRLH85 Send a message via Yahoo to CardcaptorRLH85
How do I code for a more complex joystick?

Our team is using two Logitech Gamepad F310's for our drivers station this year. We did use one last year and I think that I instantiated it correctly then however, on occasion I had strange errors concerning which axis did what. I'm simply asking if there's a better way than

Code:
m_driveStick = new Joystick(1, 5, 8)
/*
 * Where 1 is the USB port number, 5 is the number of axes, 
 * and 8 is the number of buttons.
*/
to create this Joystick object.

Also, as far as I can tell, the left and right triggers on this controller are simply + and - on the same axis.

For some reason this way just seems...overly complex but I can't seem to come up with a method to simplify it that doesn't appear to add other unnecessary complexity.
__________________

Reply With Quote