public int getJoyIndex() {
        return button.getJoystick().getJoyId();
    }
The joystick index.

@return joystick index.

@see com.jme3.input.InputManager#getJoysticks()
jme3-core/src/main/java/com/jme3/input/event/JoyButtonEvent.java