public static String remapAxis(String joystickName, String componentId) {
        if (logger.isLoggable(Level.FINE)) {
            logger.log(Level.FINE, "remapAxis({0}, {1})", new Object[]{joystickName, componentId});
        }

        // Always try the specific name first.
        joystickName = joystickName.trim();
        Map map = getAxisMappings(joystickName, false);
        if (map != null && map.containsKey(componentId)) {
            if (logger.isLoggable(Level.FINE)) {
                logger.log(Level.FINE, "returning remapped axis:{0}", map.get(componentId));
            }
            return ((AxisData) map.get(componentId)).name;
        }

        map = getMappings(joystickName, false);
        if (map != null && map.containsKey(componentId)) {
            if (logger.isLoggable(Level.FINE)) {
                logger.log(Level.FINE, "returning remapped axis:{0}", map.get(componentId));
            }
            return ((String) map.get(componentId));
        }

        // Try the normalized name
        joystickName = getNormalizedName(joystickName);
        logger.log(Level.FINE, "normalized joystick name:{0}", joystickName);
        if (joystickName == null) {
            return componentId;
        }

        map = getAxisMappings(joystickName, false);
        if (map != null && map.containsKey(componentId)) {
            if (logger.isLoggable(Level.FINE)) {
                logger.log(Level.FINE, "returning remapped:{0}", map.get(componentId));
            }
            return ((AxisData) map.get(componentId)).name;
        }

        map = getMappings(joystickName, false);
        if (map != null && map.containsKey(componentId)) {
            if (logger.isLoggable(Level.FINE)) {
                logger.log(Level.FINE, "returning remapped:{0}", map.get(componentId));
            }
            return ((String) map.get(componentId));
        }

        return componentId;
    }
Takes the original name of an axis, specifically, and returns the new name it will function under.

@param joystickName - The joystick type the axis comes from.
@param componentId  - The system-provided name for the axis.
@return The new name for the axis, or just componentId if no remapping was provided.
jme3-core/src/main/java/com/jme3/input/JoystickCompatibilityMappings.java