From 9d4f93867579de4d7b65ed4639ba2733786daaae Mon Sep 17 00:00:00 2001 From: PopSlime Date: Sun, 6 Nov 2022 00:20:01 +0800 Subject: [PATCH] Move InputEvent to InputManager.cs. --- Assets/Cryville/Common/Unity/Input/InputHandler.cs | 9 --------- Assets/Cryville/Common/Unity/Input/InputManager.cs | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Assets/Cryville/Common/Unity/Input/InputHandler.cs b/Assets/Cryville/Common/Unity/Input/InputHandler.cs index c142a9e..c8702eb 100644 --- a/Assets/Cryville/Common/Unity/Input/InputHandler.cs +++ b/Assets/Cryville/Common/Unity/Input/InputHandler.cs @@ -74,15 +74,6 @@ namespace Cryville.Common.Unity.Input { } } - public struct InputEvent { - public InputIdentifier Id { get; set; } - public InputVector From { get; set; } - public InputVector To { get; set; } - public override string ToString() { - return string.Format("[{0}] {1} -> {2}", Id, From, To); - } - } - public struct InputVector { public double Time { get; set; } public bool IsNull { get; set; } diff --git a/Assets/Cryville/Common/Unity/Input/InputManager.cs b/Assets/Cryville/Common/Unity/Input/InputManager.cs index f6fa7b8..8d73d50 100644 --- a/Assets/Cryville/Common/Unity/Input/InputManager.cs +++ b/Assets/Cryville/Common/Unity/Input/InputManager.cs @@ -77,4 +77,13 @@ namespace Cryville.Common.Unity.Input { } } } + + public struct InputEvent { + public InputIdentifier Id { get; set; } + public InputVector From { get; set; } + public InputVector To { get; set; } + public override string ToString() { + return string.Format("[{0}] {1} -> {2}", Id, From, To); + } + } }