@Override
    @Deprecated
    public void assignAxis(String positiveMapping, String negativeMapping, int axisId) {

        // For backwards compatibility
        if (axisId == JoyInput.AXIS_POV_X) {
            axisId = getPovXAxis().getAxisId();
        } else if (axisId == JoyInput.AXIS_POV_Y) {
            axisId = getPovYAxis().getAxisId();
        }

        inputManager.addMapping(positiveMapping, new JoyAxisTrigger(joyId, axisId, false));
        inputManager.addMapping(negativeMapping, new JoyAxisTrigger(joyId, axisId, true));
    }
Assign the mappings to receive events from the given joystick axis.

@param positiveMapping The mapping to receive events when the axis is negative
@param negativeMapping The mapping to receive events when the axis is positive
@param axisId The axis index.

@see Joystick#getAxisCount()
@deprecated Use JoystickAxis.assignAxis() instead.
jme3-core/src/main/java/com/jme3/input/AbstractJoystick.java