reated keys work in terminal
This commit is contained in:
@@ -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