From 3b9be954b1082f6f7263e8b57938666462a79ac8 Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 27 Nov 2024 16:33:28 +0100 Subject: [PATCH] fix: using Input::get_action_strength instead of Input::is_action_pressed --- player_input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player_input.cpp b/player_input.cpp index b544c93..5fb7daa 100644 --- a/player_input.cpp +++ b/player_input.cpp @@ -40,7 +40,7 @@ std::optional PlayerInput::Listener::evaluate_action(gd::String const &ac if(action.is_empty()) { return 0.f; } else { - return float(input->is_action_pressed(action)); + return float(input->get_action_strength(action)); } }