Quote:
Originally Posted by tStano
My team has used xbox controllers for as long as I've been on the team. As a previous poster noted, the deadzone is rather large. That hasn't been a big issue for us; just remember to account for it in code. The triggers do weird stuff, and we haven't been able to implement them. Otherwise, we just wrote a class called xBoxControllerMap which has a list of ints named for the buttons on the controller so we only had to figure out what does what once.
They are also, as we learned this preseason; attractive targets for theft; so if you work in a school or other public place; lock them up.
|
Here is our
XBoxControllerMap class for Java. We use another custom class called
DPadButton to turn the accessible directions of the d-pad into buttons that can trigger commands. The implementation should be relatively easy to get the gist of from a C++ point of view.