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
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”?
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.