public int getJoyId() {
        return joyId;
    }
Use {@link Joystick#assignButton(java.lang.String, int) } instead.

@param joyId the ID of a joystick
@param buttonId the index of a joystick button
jme3-core/src/main/java/com/jme3/input/controls/JoyButtonTrigger.java