[O] ResetTouchAfterTrack -> ResetTouch, add press key to reset (#93)

* [O] ResetTouchAfterTrack -> ResetTouch, add press key to reset

* fix

* update

* fix: Remove not work

---------

Co-authored-by: Menci <mencici@msn.com>
This commit is contained in:
凌莞~(=^▽^=)
2024-11-30 05:29:30 +08:00
committed by GitHub
parent bed1b85319
commit d5a9c98ff9
12 changed files with 161 additions and 24 deletions

View File

@@ -21,6 +21,16 @@ public static class Utility
};
}
public static bool IsTrutyOrDefault(TomlValue value, bool defaultValue = false)
{
return value switch
{
TomlBoolean boolean => boolean.Value,
TomlLong @long => @long.Value != 0,
_ => defaultValue
};
}
public static bool IsIntegerType(Type type)
{
return type == typeof(sbyte) || type == typeof(short) || type == typeof(int) || type == typeof(long)