Exemplo n.º 1
0
        private void Form1_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.D)
            {
                mainGame.Action(1);
            }
            if (e.KeyCode == Keys.A)
            {
                mainGame.Action(2);
            }

            if (e.KeyCode == Keys.W)
            {
                mainGame.Action(3);
            }
        }