From 6f0c852c9b0fa99fc14c4f2e3ab6f89c7f0e0ee2 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Mon, 26 Sep 2022 22:25:10 -0300 Subject: [PATCH] Port `Input.action_press/release()` changes --- main/input_default.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/input_default.cpp b/main/input_default.cpp index 14f14d4b8ae..3edfcbd927f 100644 --- a/main/input_default.cpp +++ b/main/input_default.cpp @@ -613,6 +613,8 @@ void InputDefault::action_press(const StringName &p_action, float p_strength) { action.idle_frame = Engine::get_singleton()->get_idle_frames(); action.pressed = true; action.strength = p_strength; + action.raw_strength = p_strength; + action.exact = true; action_state[p_action] = action; } @@ -624,6 +626,8 @@ void InputDefault::action_release(const StringName &p_action) { action.idle_frame = Engine::get_singleton()->get_idle_frames(); action.pressed = false; action.strength = 0.f; + action.raw_strength = 0.f; + action.exact = true; action_state[p_action] = action; }