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

@return joystick index.
@see InputManager#getJoysticks()
jme3-core/src/main/java/com/jme3/input/event/JoyAxisEvent.java