View Full Version : New Java Xbox Controller Class
Michael Pfeifer
17-02-2015, 10:08
Hello, fellow programmers, This is Owatonna Robotics team 4624! We created an Xbox Controller wrapper that simplifies the entire experience, and also adds fun features like rumble! We encourage everyone to test it out, and even make improvements.
Here's the link! https://github.com/owatonnarobotics/XboxController
shindigo
17-02-2015, 16:46
I like it! Looks very handy for working with the dpad.
I assume from the code I write:
myXboxController.dPad.up.whenPressed( new MyCommand() );
to assign a command to the dpad up "button"?
Michael Pfeifer
17-02-2015, 17:30
Yes, that's exactly how to use it!
We built it to try to be as intuitive and user friendly as possible.
Our main goal was to turn
new JoystickButton(xbox, RobotMap.COMMAND).whenPressed(new Command());
into something that actually makes sense.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.