|
Re: Using XBOX controller D-PAD
The xbox controllers use 1 more analog axis than the DualAction's, so there aren't 2 more axis for D-pad h and v. Only horizontal is available, via axis 6. -1 is one way, +1 is the other, 0 is center. There are only three states. You cannot access d-pad vertical. This is because two triggers (L2 and R2) are mapped to axis 3 (positive is one trigger, negative is the other trigger, they are summed so you can't use both at once) on the xbox and F310 controllers.
Since the Logitech F310 is the same as an xbox controller in software, it is likely the same. I have not verified this though. Note: We've found the F310 is higher quality than the Xbox stick, as the joysticks return to center better and the springs 'feel' better. It's also symmetrical, which many of our drivers prefer (even though it doesn't matter with Halo drives). All of the button maps are identical to the xbox in software.
The Logitech dual action uses button inputs for L2 and R2, so the two joysticks are axis 1-2 and 3-4, and the D-pad is axis 5 and 6 (horiz and vertical respectively, -1, 0, +1 tri-state).
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor
"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
|