Quote:
Originally Posted by James Lightfoot
OK. In trying to "clean up" the parts we are not using (e.g. some of the buttons, the right stick's x-axis), I think I got it where I want it, except for 1 thing. The intial class declaration "public class XboxController extends GenericHID implements IInputOutput" is returning "XboxControlleris not abstract and does not override abstract method GetRawButton (int)in GenericHID” error. As I am crashing into Java, I'm not swift enough to realize what I need to do later in the class when I am pulling button true/false states.
*snip*
Any help will be greatly appreciated.
|
You're running into issues because you're extending the class GenericHID. If you do that, you'll have to implement your own version of every method on
this page listed as abstract.
My suggestion would be to extend Joystick instead, as all that will be done for you (The XBox controller functions as a Joystick anyway), then you can implement your own methods for detecting specific buttons.