瀏覽代碼

Bump jinput version to 2.0.9. (#1454)

This fixes a gamepad bug discussed in https://hub.jmonkeyengine.org/t/linux-gamepad-input-on-jme3-lwjgl-splits-input-between-two-logical-gamepads
Markil3 4 年之前
父節點
當前提交
245dad0495
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      jme3-lwjgl/build.gradle

+ 7 - 1
jme3-lwjgl/build.gradle

@@ -6,4 +6,10 @@ dependencies {
     compile project(':jme3-core')
     compile project(':jme3-desktop')
     compile 'org.lwjgl.lwjgl:lwjgl:2.9.3'
-}
+    /*
+     * Upgrades the default jinput-2.0.5 to jinput-2.0.9 to fix a bug with gamepads on Linux.
+     * See https://hub.jmonkeyengine.org/t/linux-gamepad-input-on-jme3-lwjgl-splits-input-between-two-logical-gamepads
+     */
+    compile 'net.java.jinput:jinput:2.0.9'
+    compile 'net.java.jinput:jinput:2.0.9:natives-all'
+}