Рефактор

This commit is contained in:
sasha80
2025-03-26 10:13:21 +03:00
parent 1b1e40cd91
commit 973cd61ff0
15 changed files with 12 additions and 712 deletions

15
scripts/astra-kb.gd Normal file
View File

@@ -0,0 +1,15 @@
extends Node
var pid = null
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
signaller.connect('kb_pressed', Callable(self, 'on_kb_pressed'))
func on_kb_pressed(state):
if pid:
OS.kill(pid)
pid = null
if state:
pid = OS.create_process('fly-vkbd', [])