summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-20 11:28:41 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-20 11:28:41 +0100
commit2d064c743f3cae10e314bbb685c9c7ab2bffaccb (patch)
tree8499280b3379abdbe28fcd5e5cd1ae342a61206b
parentdcad6fbf9cf2fed4b2c8a49ec07465d2dbde92f7 (diff)
parent9a25d56ed9a9c6a021217e1258d4c2a4f4bb13b7 (diff)
Merge pull request #73608 from YeldhamDev/that_was_stupid
Revert `Input.get_vector()` back to checking raw strength
-rw-r--r--core/input/input.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/input/input.cpp b/core/input/input.cpp
index b2164b8e76..e74523e059 100644
--- a/core/input/input.cpp
+++ b/core/input/input.cpp
@@ -352,8 +352,8 @@ float Input::get_axis(const StringName &p_negative_action, const StringName &p_p
Vector2 Input::get_vector(const StringName &p_negative_x, const StringName &p_positive_x, const StringName &p_negative_y, const StringName &p_positive_y, float p_deadzone) const {
Vector2 vector = Vector2(
- get_action_strength(p_positive_x) - get_action_strength(p_negative_x),
- get_action_strength(p_positive_y) - get_action_strength(p_negative_y));
+ get_action_raw_strength(p_positive_x) - get_action_raw_strength(p_negative_x),
+ get_action_raw_strength(p_positive_y) - get_action_raw_strength(p_negative_y));
if (p_deadzone < 0.0f) {
// If the deadzone isn't specified, get it from the average of the actions.