From e814861950c56fdcfbd706508c85d7d2adef9662 Mon Sep 17 00:00:00 2001 From: Ricardo Subtil Date: Mon, 13 Feb 2023 14:08:38 +0000 Subject: [PATCH] Change message of unknown joypad property from error to warning (cherry picked from commit e841f13cdcab6531c1e65df39906d7b24a9fc7e8) --- main/input_default.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/input_default.cpp b/main/input_default.cpp index 1d9d1a10a32..126b5ef0a1d 100644 --- a/main/input_default.cpp +++ b/main/input_default.cpp @@ -1216,8 +1216,9 @@ void InputDefault::parse_mapping(String p_mapping) { JoystickList output_button = _get_output_button(output); JoystickList output_axis = _get_output_axis(output); - ERR_CONTINUE_MSG(output_button == JOY_INVALID_OPTION && output_axis == JOY_INVALID_OPTION, - vformat("Unrecognised output string \"%s\" in mapping:\n%s", output, p_mapping)); + if (output_button == JOY_INVALID_OPTION && output_axis == JOY_INVALID_OPTION) { + print_verbose(vformat("Unrecognized output string \"%s\" in mapping:\n%s", output, p_mapping)); + } ERR_CONTINUE_MSG(output_button != JOY_INVALID_OPTION && output_axis != JOY_INVALID_OPTION, vformat("Output string \"%s\" matched both button and axis in mapping:\n%s", output, p_mapping));