diff options
author | Devan OBoyle <doboyle@ucsc.edu> | 2023-06-01 13:15:27 -0700 |
---|---|---|
committer | Devan OBoyle <doboyle@ucsc.edu> | 2023-06-11 21:25:29 -0700 |
commit | ed02d515e049488f5416f45a038756590718df2c (patch) | |
tree | b0f471ca06e126db6495527637820b9f5fca515a /core/input | |
parent | 2e273f0e35800f2bcc7c05db54100caa97928f69 (diff) | |
download | redot-engine-ed02d515e049488f5416f45a038756590718df2c.tar.gz |
Skip error messages for buttons that don't exist
Diffstat (limited to 'core/input')
-rw-r--r-- | core/input/input.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/input/input.cpp b/core/input/input.cpp index 1348389481..ca348c0c3c 100644 --- a/core/input/input.cpp +++ b/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; |