mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-24 12:55:56 +00:00
And bring back old cleanup code, which now seems to work better post-yield-abandonment.
This commit is contained in:
parent
96e7153410
commit
50ea09d7f7
|
@ -634,3 +634,9 @@ func _process(delta):
|
|||
if node.is_inside_tree() and not node.get_focus_owner():
|
||||
node.get_tree().root.warp_mouse(node.rect_global_position)
|
||||
timer = null
|
||||
|
||||
func free():
|
||||
if timer:
|
||||
timer.unreference()
|
||||
timer = null
|
||||
.free()
|
||||
|
|
|
@ -86,6 +86,11 @@ func _enter_tree():
|
|||
connect("swipe_up", self, "swipe_up")
|
||||
connect("swipe_down", self, "swipe_down")
|
||||
|
||||
func _exit_tree():
|
||||
for accessible in accessibles:
|
||||
accessible.free()
|
||||
accessibles = []
|
||||
|
||||
func press_and_release(action):
|
||||
var event = InputEventAction.new()
|
||||
event.action = action
|
||||
|
|
Loading…
Reference in New Issue
Block a user