Example #1
0
        private void C_KeyUp(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.ShiftKey:
                ShiftDown = false;
                break;

            case Keys.F2:
                MMessageBus.ChangeModeRequest(this, MAvatar.eMoveMode.Walking);
                break;

            case Keys.F3:
                MMessageBus.ChangeModeRequest(this, MAvatar.eMoveMode.Flying);
                break;

            case Keys.F4:
                MMessageBus.ToggleGravity(this);
                break;

            case Keys.F:
                MMessageBus.Focus(this, null);
                break;

            case Keys.Y:
                CreateTest();
                break;
            }
        }