Go to Post You wake up at 2:54 am and aren't even mad bc robots - fargus111111111 [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2015, 10:08
Michael Pfeifer Michael Pfeifer is offline
Registered User
FRC #4624
 
Join Date: Feb 2015
Location: Owatonna
Posts: 2
Michael Pfeifer is an unknown quantity at this point
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
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2015, 16:46
shindigo shindigo is offline
Registered User
AKA: Mike Parker
FRC #0102
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2009
Location: Somerville, NJ
Posts: 33
shindigo is an unknown quantity at this point
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"?
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2015, 17:30
Michael Pfeifer Michael Pfeifer is offline
Registered User
FRC #4624
 
Join Date: Feb 2015
Location: Owatonna
Posts: 2
Michael Pfeifer is an unknown quantity at this point
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:50.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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