Beispiel #1
0
        public static void KeyUp(int keyIndex)
        {
            AtsKey atsKey = (AtsKey)keyIndex;

            userKey.Remove(atsKey);
        }
Beispiel #2
0
 public static bool IsTriggeredKey(this AtsSimulationEnvironment self, AtsKey keyType)
 {
     return(self.CurrentKeyStates[keyType].IsDown && self.LastKeyStates[keyType].IsUp);
 }
Beispiel #3
0
        public static void KeyDown(int keyIndex)
        {
            AtsKey atsKey = (AtsKey)keyIndex;

            userKey.Add(atsKey);
        }
Beispiel #4
0
 public static bool IsPressedKey(this AtsSimulationEnvironment self, AtsKey keyType)
 {
     return(self.CurrentKeyStates[keyType].IsDown);
 }