Example #1
0
 private void Window_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.A || e.Key == Key.Left)
     {
         board.MoveToLeft();
     }
     if (e.Key == Key.D || e.Key == Key.Right)
     {
         board.MoveToRight();
     }
     if (e.Key == Key.W || e.Key == Key.Up)
     {
         board.Rotate();
     }
     if (e.Key == Key.S || e.Key == Key.Down)
     {
         board.FastDown();
     }
 }