Move InputEvent to InputManager.cs.

This commit is contained in:
2022-11-06 00:20:01 +08:00
parent c3dc6b9a03
commit 9d4f938675
2 changed files with 9 additions and 9 deletions

View File

@@ -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; }

View File

@@ -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);
}
}
}