mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-21 19:45:55 +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()
|
var event = InputEventAction.new()
|
||||||
event.action = action
|
event.action = action
|
||||||
event.pressed = true
|
event.pressed = true
|
||||||
|
Input.action_press(action)
|
||||||
get_tree().input_event(event)
|
get_tree().input_event(event)
|
||||||
event.pressed = false
|
event.pressed = false
|
||||||
|
Input.action_release(action)
|
||||||
get_tree().input_event(event)
|
get_tree().input_event(event)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user