Change message of unknown joypad property from error to warning

(cherry picked from commit e841f13cdc)
This commit is contained in:
Ricardo Subtil 2023-02-13 14:08:38 +00:00 committed by Rémi Verschelde
parent 51fb839278
commit 585aee3f41
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 3 additions and 2 deletions

View File

@ -1183,8 +1183,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));