Have an XboxJoystick class!

After looking at the other Xbox controller classes I had found I noticed a major problem if you wanted to use them with the CommandBased Robot: You couldn’t use the JoystickButton class with them. There were also a few placed I noticed it asking for a GenericHID object as a parameter. Then while you could use the Joystick class and getRawButton/Axis() to get what you need, I wanted the software to keep track of the labels for me.

So here is the class I offer to you. It is only mildly tested so I may have miss-numbered a button or something, but what testing I have done, worked.

https://github.com/frc3946/UltimateAscent/blob/master/src/org/usfirst/frc3946/UltimateAscent/XboxJoystick.java