mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 22:51:08 +00:00
Skip error messages for buttons that don't exist
This commit is contained in:
parent
2e273f0e35
commit
ed02d515e0
1 changed files with 3 additions and 2 deletions
|
|
@ -1356,8 +1356,9 @@ void Input::parse_mapping(String p_mapping) {
|
||||||
|
|
||||||
String output = entry[idx].get_slice(":", 0).replace(" ", "");
|
String output = entry[idx].get_slice(":", 0).replace(" ", "");
|
||||||
String input = entry[idx].get_slice(":", 1).replace(" ", "");
|
String input = entry[idx].get_slice(":", 1).replace(" ", "");
|
||||||
ERR_CONTINUE_MSG(output.length() < 1 || input.length() < 2,
|
if (output.length() < 1 || input.length() < 2) {
|
||||||
vformat("Invalid device mapping entry \"%s\" in mapping:\n%s", entry[idx], p_mapping));
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (output == "platform" || output == "hint") {
|
if (output == "platform" || output == "hint") {
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue