View Single Post
  #2   Spotlight this post!  
Unread 27-01-2015, 09:02
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,717
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Javadocs for F310 Gamepad

Quote:
Originally Posted by DCRich View Post
Where are the Javadocs for using the Logitec F310 Gamepad or the XBox game controller? I find instructions on a 3-axis (X Y Z) Joystick but not for the 2-stick gamepad.

For those whose standard reply is to connect to DriverStation USB display - we did that and the right controller of the game pad showed X and Y motion and the left controller did nothing. since the display was identified as Joystick 1 and Joystick 2 it was not looking for a second control stick on the same port.

So how do we access the second controller?
You treat it just like a joystick, but use the getRawAxis(int axis) method to access each axis.
Reply With Quote