Hi everyone. First off, I’m excited to use JInput, it looks like a lot of work has gone into it and I’m pretty impressed with what I’ve used so far. I’m attempting to integrate an Xbox360 controller into a project i’m working on and using the jinput-test.jar I can press buttons, move the joystick etc etc. Interestingly enough, it’s also showing the USB Mouse attached to my computer.
However, when I get a controller list using this standard method:
ControllerEnvironment ce = ControllerEnvironment.getDefaultEnvironment();
Controller[] controllers = ce.getControllers();
for( int i = 0; i < controllers.length; i++ )
{
Print(controllers[i].getType().toString(), true);
}
it only finds my laptop keyboard and mouse, none of the USB devices that are plugged in. I’m on Vista 32 and like I said, most everything appears to be working. Is the source for jinput-test.jar available anywhere? That would be a good start but I couldn’t find it on the CVS or anywhere else.
Any help on what I’m doing wrong or a push in the right direction would be much appreciated!
Thanks!