reated keys work in terminal
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user