Using the Xbox 360 Controller

9 views
Skip to first unread message

Cardcaptor Raa'Shaun

unread,
Feb 25, 2016, 6:23:15 PM2/25/16
to Strongback
Which Strongback controller is closest to the Xbox 360 controller?  My team is using a 360 controller and, so far, I've figured out that the Logitech F310 is pretty close but, I'm not sure if it's one-to-one.  Thanks for the help.

Randall Hauch

unread,
Feb 26, 2016, 8:44:56 AM2/26/16
to stron...@googlegroups.com
The closest (per this reference) is the Logitech F310, which can be created using the Hardware.HumanInterfaceDevices.logitechF310(port) method. To be sure, you might consider testing this with code: in teleopPeriodic simply use System.out and print out the value of each ContinuousRange and Switch that you're interested, and then exercise all of the device's buttons/joysticks and verify the software reacts correctly.

If there are any discrepancies, the fastest thing to do is to create your own Gamepad instance just like what the `logitechF310(int)` method does, and modify the order of the axes until you get something that works correctly. This way you can be up and running without having to wait for a Strongback release.

Either way, we'd love to hear the result. If the `logitechF310(int)` method works well, file an issue so we can update the JavaDoc to say it works with the Xbox 360 controller. If the method is not a perfect match and you create your own mapping, file an issue with your results -- or better yet, create a pull-request with a new method on Hardware.HumanInterfaceDevices specifically for an Xbox 360 controller. We can issue a release right away.

Good luck!

Raa'Shaun H.

unread,
Feb 28, 2016, 8:01:15 PM2/28/16
to Strongback
The Xbox 360 controllers buttons are off by one from the F310 (the axes are correct).  I submitted a pull request with the correct matching.

Randall Hauch

unread,
Feb 29, 2016, 9:36:41 AM2/29/16
to Strongback
Thanks for the pull request! We've merged your contribution and have released 1.1.4.
Reply all
Reply to author
Forward
0 new messages