I'm trying to listen keyboard events in Java by using a third-party library from "net.java.games.input". When I run my code in Eclipse, it works fine. But when I build my project and run the .jar, it does not. The reason I guess, the library needs some .dll files to listen my keyboard and they don't work in .jar.
Here's my code example;
ControllerEnvironment ce = ControllerEnvironment.getDefaultEnvironment();
Controller[] ca = ce.getControllers();
So, what should I do to make this work in a .jar?
Thanks.