Browse Source

Skip error messages for buttons that don't exist

Devan OBoyle 2 years ago
parent
commit
ed02d515e0
1 changed files with 3 additions and 2 deletions
  1. 3 2
      core/input/input.cpp

+ 3 - 2
core/input/input.cpp

@@ -1356,8 +1356,9 @@ void Input::parse_mapping(String p_mapping) {
 
 		String output = entry[idx].get_slice(":", 0).replace(" ", "");
 		String input = entry[idx].get_slice(":", 1).replace(" ", "");
-		ERR_CONTINUE_MSG(output.length() < 1 || input.length() < 2,
-				vformat("Invalid device mapping entry \"%s\" in mapping:\n%s", entry[idx], p_mapping));
+		if (output.length() < 1 || input.length() < 2) {
+			continue;
+		}
 
 		if (output == "platform" || output == "hint") {
 			continue;