Browse Source

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 years ago
parent
commit
245dad0495
1 changed files with 7 additions and 1 deletions
  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'
+}