From 0d01de1a294d8c7ca116133f548327e8885702b7 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Tue, 17 Sep 2024 17:46:37 +0100 Subject: [PATCH] Use more appropriate input handling methods --- project/code/TMV/Mission.cs | 2 +- project/code/TMV/UI/ResourceSelector.cs | 2 +- project/code/camera.gd | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project/code/TMV/Mission.cs b/project/code/TMV/Mission.cs index 37817c8..4d71061 100644 --- a/project/code/TMV/Mission.cs +++ b/project/code/TMV/Mission.cs @@ -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) { diff --git a/project/code/TMV/UI/ResourceSelector.cs b/project/code/TMV/UI/ResourceSelector.cs index 6c52ede..8fdaea4 100644 --- a/project/code/TMV/UI/ResourceSelector.cs +++ b/project/code/TMV/UI/ResourceSelector.cs @@ -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) { diff --git a/project/code/camera.gd b/project/code/camera.gd index a57c9a3..0d4f97d 100644 --- a/project/code/camera.gd +++ b/project/code/camera.gd @@ -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