Linux Gamepad Input on jme3-lwjgl Splits Input Between Two Logical Gamepads

Basically, jinput-platform is the dependency 2.0.5 uses to load its native libraries, and natives-all is the one 2.0.9 uses. I’m guessing they changed the project structure somewhere down the line.

True. In that case, we should probably at least add a comment to the source explaining the problem and referencing this thread.

if (!hasProperty('mainClass')) {
    ext.mainClass = ''
}

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/44023/10
     */
    compile 'net.java.jinput:jinput:2.0.9'
    compile 'net.java.jinput:jinput:2.0.9:natives-all'
}