Skip to content

Commit f3f2dad

Browse files
author
BuildTools
committed
Modified the event_is_action_pressed() function within the window focus section since it was not using the event parameter.
1 parent 8b4cc3b commit f3f2dad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/inputs/controllers_gamepads_joysticks.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ with the following script and use it to check all your inputs:
251251

252252
func event_is_action_pressed(event: InputEvent, action: StringName) -> bool:
253253
if focused:
254-
return Input.is_action_pressed(action)
254+
return event.is_action_pressed(action)
255255

256256
return false
257257

0 commit comments

Comments
 (0)