Explorar o código

Merge pull request #7944 from FaintLocket424/master

Changed Input. to event. in the event_is_action_pressed() example function
Max Hilbrunner %!s(int64=2) %!d(string=hai) anos
pai
achega
9d2e9e9497
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tutorials/inputs/controllers_gamepads_joysticks.rst

+ 1 - 1
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