Thread: XBOX button
View Single Post
  #1   Spotlight this post!  
Unread 25-05-2007, 13:31
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: XBOX button

Quote:
Originally Posted by tseres View Post
...when you use the extra buttons feature, the last 4 bits of an analog byte get assigned values...
...read through the manual for more...
Read through the manual for the correct information. It's the top four bits (128, 64, 32, 16) which represent digital switch values. You should test the individual bits rather than the analog value as a whole, as the lower few bits cannot be guaranteed to be consistent.

There are 17 supported buttons on an Xbox 360 controller. The Chicklet can assign any 12 of them to be sent to the joystick port, four as "real" switch inputs and eight encoded in the Wheel and Aux analog values. Using it this way means you can only get "real" joystick values from two of the possible four axes on the controller. You can choose to get x and y inputs from both the left and right joysticks, but that restricts you to a total of four switch inputs. This is all in the Chicklet manual.