LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: cyril.chandelier on March 16, 2010, 22:43:39

Title: Joystick detection problem
Post by: cyril.chandelier on March 16, 2010, 22:43:39
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



Title: Re: Joystick detection problem
Post by: cyril.chandelier on March 17, 2010, 12:31:32
Any idea ?
Title: Re: Joystick detection problem
Post by: Fool Running on March 17, 2010, 12:50:40
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. ;)