Hi,
I downloaded JInput from https://jinput.dev.java.net/
I created a test class :
import net.java.games.input.Controller;
import net.java.games.input.ControllerEnvironment;
public class TestControllers {
public static void main(String[] args) {
ControllerEnvironment ce = ControllerEnvironment.getDefaultEnvironment();
Controller[] controllers = ce.getControllers();
for (Controller controller : controllers) {
System.out.println("-> " + controller.getType());
System.out.println("\t" + controller);
}
}
}
It works well with Windows XP, but not with Linux Ubuntu 8.10 (kernel 2.6.27-11-generic) !
I have an exception with Eclipse :
[quote]Loading: net.java.games.input.LinuxEnvironmentPlugin
Failed to load 64 bit library: no jinput-linux64 in java.library.path
java.lang.UnsatisfiedLinkError: no jinput-linux in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at net.java.games.input.LinuxEnvironmentPlugin$1.run(LinuxEnvironmentPlugin.java:65)
at java.security.AccessController.doPrivileged(Native Method)
at net.java.games.input.LinuxEnvironmentPlugin.loadLibrary(LinuxEnvironmentPlugin.java:58)
at net.java.games.input.LinuxEnvironmentPlugin.(LinuxEnvironmentPlugin.java:92)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:156)
at TestControllers.main(TestControllers.java:10)
net.java.games.input.LinuxEnvironmentPlugin is not supported
[/quote]
Can you help me, please ?