Beispiel #1
0
        public void HandleKey(KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.ShiftKey:
                ShiftDown = true;
                break;

            case Keys.Add:
                MMessageBus.Rotate(this, new Quaterniond(0, 45 * Math.PI / 180.0, 0));
                break;

            case Keys.Subtract:
                MMessageBus.Rotate(this, new Quaterniond(0, -45 * Math.PI / 180.0, 0));
                break;
            }
        }