From 7a9a5170ed9cb395a33fa26daa61b618621741f4 Mon Sep 17 00:00:00 2001 From: Mutzi Date: Sun, 24 Mar 2024 09:20:36 +0100 Subject: [PATCH] Fixed #4 --- project.godot | 2 +- src/Game/Input.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/project.godot b/project.godot index 79f28f1..58824d8 100644 --- a/project.godot +++ b/project.godot @@ -16,7 +16,7 @@ ClassPrefix="" [application] config/name="Hellswipers" -config/version="1.2.0" +config/version="1.2.1" run/main_scene="res://main_menu/main_menu.tscn" config/features=PackedStringArray("4.2", "C#", "Mobile") boot_splash/show_image=false diff --git a/src/Game/Input.cs b/src/Game/Input.cs index dfc3d14..1dfd673 100644 --- a/src/Game/Input.cs +++ b/src/Game/Input.cs @@ -23,7 +23,7 @@ public partial class Game { ); } - public override void _UnhandledInput(InputEvent ev) { + public override void _Input(InputEvent ev) { if (ev is InputEventMouseButton evm) { if (ev.IsPressed()) _swipeStart = evm.Position; @@ -42,5 +42,4 @@ public partial class Game { GetTree().ChangeSceneToPacked(ResourceLoader.Load("res://main_menu/main_menu.tscn")); } } - } \ No newline at end of file