1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-30 16:26:50 +00:00

Replace default deadzone magic number with named constant

This commit is contained in:
Malcolm Anderson
2024-11-12 09:43:29 -08:00
parent 0f5f3bc954
commit 829dade53b
5 changed files with 9 additions and 6 deletions

View File

@@ -31,6 +31,7 @@
#include "project_settings_editor.h"
#include "core/config/project_settings.h"
#include "core/input/input_map.h"
#include "editor/editor_inspector.h"
#include "editor/editor_node.h"
#include "editor/editor_settings.h"
@@ -390,7 +391,7 @@ void ProjectSettingsEditor::_action_added(const String &p_name) {
Dictionary action;
action["events"] = Array();
action["deadzone"] = 0.2f;
action["deadzone"] = InputMap::DEFAULT_DEADZONE;
EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton();
undo_redo->create_action(TTR("Add Input Action"));