jinput not working on some computers

Hello,

We’ve had a great experience using jinput.

But, on about 10% of our user’s computers, it doesn’t seem to work. (We’re calling the keyboard poll() method to see if keys are pressed.)

For example, one user has the following setup:
HP Pavilion DB6600 notebook Windows XP, and uses DirectAndRawInputEnvironmentPlugin

We’ve had other users running Vista where it doesn’t seem to work.

It’s unclear to me how to debug this. We can run from the jinput source, but it’s still unclear to me how best to proceed.

Anyone have suggestions?

Thanks,

Mark

Well I wasn’t exactly overwhelmed there with responses…

But we figured it out. The “getting started” post shows an example with the mouse controller, where only the first mouse controller is polled. We had done the same thing with the keyboard controller, and this works on most computers. But on some systems the first keyboard controller is not the correct controller, and no events come through.

Now we’re checking all controllers, and things are working fine. We may make a change to detect which controller is active, and stop polling the other keyboard controllers.

I looked around in the code, but couldn’t see any mistakes, looks like it wasn’t a bug. More importantly, it’s working for you now.

Endolf