Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   New Java Xbox Controller Class (http://www.chiefdelphi.com/forums/showthread.php?t=134760)

Michael Pfeifer 17-02-2015 10:08

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

shindigo 17-02-2015 16:46

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"?

Michael Pfeifer 17-02-2015 17:30

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());
into something that actually makes sense.


All times are GMT -5. The time now is 22:27.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi