Beispiel #1
0
        public override void OnKeyDown(AGG.UI.KeyEventArgs keyEvent)
        {
            m_Playfield.Player.KeyDown(keyEvent);

            if (keyEvent.Control && keyEvent.KeyCode == Keys.S)
            {
                m_Playfield.SaveXML("TestSave");
            }

            base.OnKeyDown(keyEvent);
        }
        public override void OnKeyDown(MatterHackers.Agg.UI.KeyEventArgs keyEvent)
        {
            foreach (Player aPlayer in m_Playfield.PlayerList)
            {
                aPlayer.KeyDown(keyEvent);
            }

            if (keyEvent.Control && keyEvent.KeyCode == Keys.S)
            {
                m_Playfield.SaveXML("TestSave");
            }

            base.OnKeyDown(keyEvent);
        }