Go to Post Compact gearboxes are a wonderful thing. - Cothron Theiss [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   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
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:58.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi