Fix input source description.

This commit is contained in:
2022-10-08 16:01:58 +08:00
parent e7e4b36b4c
commit 83fdf3bbeb
4 changed files with 9 additions and 6 deletions

View File

@@ -39,6 +39,9 @@ namespace Cryville.Common.Unity.Input {
public override int GetHashCode() {
return Handler.GetHashCode() ^ Type;
}
public override string ToString() {
return string.Format("{0}:{1}", ReflectionHelper.GetSimpleName(Handler.GetType()), Handler.GetTypeName(Type));
}
public static bool operator ==(InputSource lhs, InputSource rhs) {
return lhs.Equals(rhs);
}