Example #1
0
 public static bool CheckRepeat(this KeyboardState keyboard, Keys key, GameTime gameTime, ref TimeSpan lastTime, TimeSpan repeatTime)
 {
     return(keyboard.IsKeyDown(key) && gameTime.CheckRepeat(ref lastTime, repeatTime));
 }