reated keys work in terminal

This commit is contained in:
Brazly
2026-01-17 22:23:36 +00:00
parent 1b8896b860
commit 129309ec3e
85 changed files with 418 additions and 171 deletions

View File

@@ -5,7 +5,7 @@ extends OmniLight3D
var randomRange: float = 0.0
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
func _process(_delta: float) -> void:
light.light_energy = lerp(light.light_energy, randomRange, 0.3)
pass

View File

@@ -6,7 +6,7 @@ var rayRange = 2000
@export var terminal: TerminalControls
func _physics_process(delta: float) -> void:
func _physics_process(_delta: float) -> void:
Get_Camera_Collision()
@@ -26,13 +26,14 @@ func Get_Camera_Collision():
func _input(event: InputEvent) -> void:
if event is InputEventKey and event.pressed and crosshair.is_highlighted:
if event.is_echo(): return
if event.keycode == KEY_BACKSPACE:
terminal.InputDelChar()
if event.unicode > 31:
var character = char(event.unicode)
if terminal: # Check that you assigned the node in the Inspector
terminal.InputChar(character)