View Single Post
  #6   Spotlight this post!  
Unread 28-02-2014, 11:49
James Lightfoot James Lightfoot is offline
Programming & Electrical Mentor
FRC #3737 (Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Wayne County, NC
Posts: 21
James Lightfoot is just really niceJames Lightfoot is just really niceJames Lightfoot is just really niceJames Lightfoot is just really niceJames Lightfoot is just really nice
Re: XBOX Controller JAVA Programming

Quote:
Originally Posted by cgmv123 View Post
Here's the Xbox controller class we use: https://github.com/team1306/Badgerbo...ontroller.java

We haven't needed to modify it in 4 years.
Questions: 1) Where does the axxes and button numbers get assigned to names, for easier use in the rest of the programming? 2) What is the significance of the line: return ((0x1 << (button - 1)) & m_ds.getStickButtons(m_port)) != 0; Does this only apply if we want to use the back triggers as buttons instead of axis 3, or do we need the line either way?

Thanks
Reply With Quote