mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-12-21 23:25:56 +00:00
Fix regression where actions not being faked via keyboard didn't work.
This commit is contained in:
parent
10a080ab99
commit
ce8d429336
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user