You've already forked godot
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:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user