Fix regression where actions not being faked via keyboard didn't work.

This commit is contained in:
Nolan Darilek 2020-06-09 13:45:00 -05:00
parent 10a080ab99
commit ce8d429336

View File

@ -135,8 +135,10 @@ func _press_and_release(action, fake_via_keyboard = false):
var event = InputEventAction.new()
event.action = action
event.pressed = true
Input.action_press(action)
get_tree().input_event(event)
event.pressed = false
Input.action_release(action)
get_tree().input_event(event)