View Single Post
  #6   Spotlight this post!  
Unread 16-09-2012, 17:29
sergioCorral842's Avatar
sergioCorral842 sergioCorral842 is offline
College Student
FRC #0842 (Falcon Robotics)
Team Role: Alumni
 
Join Date: Aug 2011
Rookie Year: 2012
Location: Phoenix, Arizona
Posts: 161
sergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to behold
Re: Reading multiple joysticks on C# using SlimDX.

Thanks for the help EHaskins. Now I am able to use all 6 gamepads that I need. Right now, whenever I press a certain button a counter on an integer goes up by one and is displayed on a label like this:
Code:
if (buttons[0])
{
    basketsAttempted++;
}
The problem I am facing now is that I want to be able to decrease the value of the integer by one when i push the left bumper and a certain button like this:
Code:
if (buttons[4] & buttons[0])
{
    basketsAttempted--;
}
If i try to use the same button and left bumper to decrease the value, it will not decrease. It only decreases if you use the left bumper and any other button but the one you used to increase it. Is there a way to use the same button and left bumper to decrease the value?