I was using jinput happily on Linux (Ubuntu) for keyboard and mouse input, until I plugged a joystick (Microsoft Sidewinder).
With this device plugged, the JVM throws a ‘UnsatisfiedLinkError’ for the ‘nGetAxisMap’ function (when enumerating js devices).
This is strange since I’m sure that the native library is loaded. I performed tests with the jinput-test.jar :
- event devices are correctly detected and working (I had unplugged the USB joystick for this test),
- looking at the source (CVS) code, before calling nGetAxisMap, the js devices handling class call other native methods defined in the joystick c file (nGetName for example) without throwing any link exception.
I have performed these test with the latest (2007-12-07) and previous (2007-07-26) combined binaries.
It looks like if the signature of the C function nGetAxisMap does not match the java expected one.
Is someone experimenting the same problems ?
Any idea would be welcomed. Thanks
Vincent