Joystick detection problem

Started by cyril.chandelier, March 16, 2010, 22:43:39

Previous topic - Next topic

cyril.chandelier

Hi there,

I'm currently creating a java application requiring a joystick. We are encountering a problem regarding the joystick detection.

If there is only one joystick is plugged to the computer, it works fine.
The problem is when there are several devices(such as a pen tablet).

I'd like to know how can you recognize the type of the device and be sure that the controller I will use is a joystick and not anything else.

thanks your spent time





Fool Running

My suggestion would be to show a list of the available controllers (Controllers.getController) and let the user choose the correct one based on its name (Controller.getName).
If they want to try play with the pen tablet, let them. ;)
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D