Can't instantiate GenericHID - What am I doing wrong. Help

Kinda new to java here.

image

I have imported the library. It also throws the warning that I’m never using it.
image

I’m sure it’s something stupidly simple. Please be gentle.

Thanks
Russ

Ok, real answer this time… GenericHID is an abstract Class. Meaning that some of its method’s are defined, but not implemented. These method’s are intended to be implemented by an extending class. Such as Joystick and XboxController. Because some of these methods aren’t implemented in the GenericHID class, you cannot instantiate an object of that type.

Thank you, Thank you, Thank you. That was it. Got to love CD.

Thanks
Russ

1 Like