Modified the event_is_action_pressed() function within the window focus section since it was not using the event parameter.

This commit is contained in:
BuildTools
2023-09-17 22:53:27 +01:00
parent 8b4cc3b229
commit f3f2dad37e

View File

@@ -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