public static int joyButtonHash(int joyId, int joyButton) {
        assert joyButton >= 0 && joyButton <= 255;
        return (2048 * joyId) | 1536 | (joyButton & 0xff);
    }
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