Use more appropriate input handling methods

This commit is contained in:
Jarrod Doyle 2024-09-17 17:46:37 +01:00
parent 931e01337f
commit 0d01de1a29
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
3 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ public partial class Mission : Node3D
}
}
public override void _Input(InputEvent @event)
public override void _ShortcutInput(InputEvent @event)
{
if (@event is InputEventKey keyEvent && keyEvent.Pressed)
{

View File

@ -40,7 +40,7 @@ public partial class ResourceSelector : Control
_CancelButton.Pressed += () => Visible = false;
}
public override void _Input(InputEvent @event)
public override void _UnhandledInput(InputEvent @event)
{
if (@event is InputEventKey keyEvent && keyEvent.Pressed)
{

View File

@ -28,7 +28,7 @@ var _e = false
var _shift = false
var _alt = false
func _input(event):
func _unhandled_input(event):
# Receives mouse motion
if event is InputEventMouseMotion:
_mouse_position = event.relative