Esempio n. 1
0
 public void GameKeyUp(GameState.GameKeys Key)
 {
     Debug.Print("keyUp in DAS Handler:" + Key.ToString() + new StackTrace().ToString());
     if (!RepeatKeys.Contains(Key))
     {
         return;
     }
     KeyData[Key].LastKeyUp      = DateTime.Now;
     KeyData[Key].LastRepeatTime = DateTime.MaxValue;
 }
Esempio n. 2
0
 public void GameKeyDown(GameState.GameKeys Key)
 {
     Debug.Print("keyDown in DAS Handler:" + Key.ToString() + new StackTrace().ToString());
     if (!RepeatKeys.Contains(Key))
     {
         return;
     }
     KeyData[Key].LastKeyDown = DateTime.Now;
     if (DASRepeatThread == null)
     {
         DASRepeatThread = new Thread(DASThread);
         DASRepeatThread.Start();
     }
 }