From f3f2dad37e00372555ec70a9aba34f6ebab646d7 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sun, 17 Sep 2023 22:53:27 +0100 Subject: [PATCH] Modified the event_is_action_pressed() function within the window focus section since it was not using the event parameter. --- tutorials/inputs/controllers_gamepads_joysticks.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/inputs/controllers_gamepads_joysticks.rst b/tutorials/inputs/controllers_gamepads_joysticks.rst index b0936927f56..b241f7064e2 100644 --- a/tutorials/inputs/controllers_gamepads_joysticks.rst +++ b/tutorials/inputs/controllers_gamepads_joysticks.rst @@ -251,7 +251,7 @@ with the following script and use it to check all your inputs: func event_is_action_pressed(event: InputEvent, action: StringName) -> bool: if focused: - return Input.is_action_pressed(action) + return event.is_action_pressed(action) return false