示例#1
0
文件: Input.cs 项目: libjared/iris
 public static bool isKeyOverride(Keyboard.Key key)
 {
     if (PressedKeys.Contains(key.ToString()) &&
         !OldPressedKeys.Contains(key.ToString()))
         return true;
     return false;
 }
示例#2
0
文件: Input.cs 项目: libjared/iris
 public static bool isKeyTap(Keyboard.Key key)
 {
     if (!isActive)
         return false;
     if (PressedKeys.Contains(key.ToString()) &&
         !OldPressedKeys.Contains(key.ToString()))
         return true;
     return false;
 }