I'm developing a game in Java (8) using Intellij Idea. Since I need controller support (XBox Controllers and the like), I seems the JInput library would help me support that.
I added the net.java.jinput:jinput:2.0.6
library via maven (project structure > libraries), but when I run it, I get the following:
WARNING: Attempting to use default windows plug-in.
java.lang.UnsatisfiedLinkError: no jinput-dx8 in java.library.path
I did some googling and fiddled around with it but I'm not able to get this working.
答案 0 :(得分:2)
我在这里找到了答案:http://wiki.lwjgl.org/wiki/Setting_Up_LWJGL_with_IntelliJ_IDEA
基本上,您在项目根目录中创建一个名为“lib”的文件夹,然后将所有本机DLL放在那里。
最后,将-Djava.library.path=lib/
添加到运行配置中的VM选项。
答案 1 :(得分:0)
如果您仍然感到困惑,以下是下载方法和link DLLs for JInput
的另一种说明