I want to use my spacemouse XT (RS 232) with JInput. I work on Linux and Eclipse Europa. I have made various tests, but in the end the following message appears when I execute the Java program :

Loading: net.java.games.input.LinuxEnvironmentPluginFailed to open device (/dev/input/event1): Failed to open device /dev/input/event1 (13)

Failed to open device (/dev/input/event0): Failed to open device /dev/input/event0 (13)

java.lang.ClassCastException: net.java.games.input.LinuxMouse at net.java.games.input.LinuxEnvironmentPlugin.enumerateControllers(LinuxEnvironmentPlugin.java:257) at net.java.games.input.LinuxEnvironmentPlugin.<init>(LinuxEnvironmentPlugin.java:113) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:157) at TestJinput.<init>(TestJinput.java:10) at Lanceur.main(Lanceur.java:5)

I had to add the following line in the <a href=http://www.home.unix-ag.org/simon/files/spacenavi.c>spacenavi.c</a> Program :... case EV_REL: case EV_ABS: if (event.code <= REL_RZ) axes[event.code - REL_X] = event.value; break;...

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org