|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
New Java Xbox Controller Class
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 |
|
#2
|
|||
|
|||
|
Re: New Java Xbox Controller Class
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"? |
|
#3
|
|||
|
|||
|
Re: New Java Xbox Controller Class
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 Code:
new JoystickButton(xbox, RobotMap.COMMAND).whenPressed(new Command()); |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|