Example #1
0
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            if (keyData == Controls1.Rechts)
            {
                mand1.Rechts(this);
            }
            else if (keyData == Controls1.Links)
            {
                mand1.Links(this);
            }
            else if (keyData == Controls2.Rechts)
            {
                mand2.Rechts(this);
            }
            else if (keyData == Controls2.Links)
            {
                mand2.Links(this);
            }
            else if (keyData == Keys.V)
            {
                for (int i = 0; i < ballen.Count; i++)
                {
                    ballen[i].ValNu();
                }
                bom.ValNu();
            }
            else if (keyData == Controls2.Omhoog)
            {
                mand2.Jump(this);
            }
            else if (keyData == Controls1.Omhoog)
            {
                mand1.Jump(this);
            }
            else if (keyData == Keys.F11)
            {
                GoFullscreen();
            }

            return(base.ProcessCmdKey(ref msg, keyData));
        }