Beispiel #1
0
        public override void HandleKeyStates(System.Collections.Generic.IEnumerable <SharpDL.Input.KeyInformation> keysPressed, System.Collections.Generic.IEnumerable <SharpDL.Input.KeyInformation> keysReleased)
        {
            base.HandleKeyStates(keysPressed, keysReleased);

            foreach (var key in keysPressed)
            {
                if (key.VirtualKey == SharpDL.Input.VirtualKeyCode.Escape)
                {
                    OnReturnToMainMenu();
                }

                iconFrameInputNames.HandleKeyPressed(key);
                textboxInputCompanyName.HandleKeyPressed(key);
                textboxInputPlayerName.HandleKeyPressed(key);
            }
        }