Example #1
0
 private void Form1_KeyUp(object sender, KeyEventArgs e)
 {
     RightMove.Stop();
     LeftMove.Stop();
     UpMove.Stop();
     DownMove.Stop();
     // canFire = false;
 }
Example #2
0
 private void Form1_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Left)
     {
         LeftRotate.Stop();
     }
     if (e.KeyCode == Keys.Right)
     {
         RightRotate.Stop();
     }
     if (e.KeyCode == Keys.Up)
     {
         UpMove.Stop();
     }
     if (e.KeyCode == Keys.Down)
     {
         DownMove.Stop();
     }
     if (UpMove.Enabled == false && DownMove.Enabled == false && LeftRotate.Enabled == false & RightRotate.Enabled == false)
     {
         MainPlayer.Image = RotateImage((Bitmap)imgMainPlayer[0], angle);
     }
 }