mirror of
https://github.com/godotengine/godot.git
synced 2026-02-08 03:38:29 +00:00
[Input] Handle invalid input/ settings correctly
This prefix is reserved for events
This commit is contained in:
@@ -317,6 +317,11 @@ void InputMap::load_from_project_settings() {
|
||||
String name = pi.name.substr(pi.name.find_char('/') + 1);
|
||||
|
||||
Dictionary action = GLOBAL_GET(pi.name);
|
||||
|
||||
if (!action.has("events")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
float deadzone = action.has("deadzone") ? (float)action["deadzone"] : DEFAULT_DEADZONE;
|
||||
Array events = action["events"];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user