Skip to content

Commit 9d2e9e9

Browse files
authored
Merge pull request godotengine#7944 from FaintLocket424/master
Changed Input. to event. in the event_is_action_pressed() example function
2 parents 950c8b9 + f3f2dad commit 9d2e9e9

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)