public static int joyAxisHash(int joyId, int joyAxis, boolean negative) {
        assert joyAxis >= 0 && joyAxis <= 255;
        return (2048 * joyId) | (negative ? 1280 : 1024) | (joyAxis & 0xff);
    }
Use {@link Joystick#assignAxis(java.lang.String, java.lang.String, int) }
instead.

@param joyId which joystick
@param axisId which joystick axis
@param negative true to negate input values, false to leave unchanged
jme3-core/src/main/java/com/jme3/input/controls/JoyAxisTrigger.java