Thread: Xbox Controller
View Single Post
  #10   Spotlight this post!  
Unread 23-06-2014, 14:43
LFRobotics's Avatar
LFRobotics LFRobotics is offline
Registered User
FRC #4623
 
Join Date: Jan 2014
Location: Little Falls, MN
Posts: 95
LFRobotics is on a distinguished road
Re: Xbox Controller

Okay I get it - but why cant I just continue to use

Code:
Joystick joystick = new Joystick(1);
private Button button = new JoystickButton(joystick, 0);
to assign my buttons or even

Code:
private Button button = new JoystickButton(joystick, joystick.getRawButton(0));
instead of having to create a whole new class.

And if it is completely necessary to do so I would need some help - I have an idea of what to do but I would still need some guidance.

THANKS!
Reply With Quote