Пример #1
0
        void ListenerKeyUp(object sender, KeyEventArgs e)
        {
            e.Handled = true;
            m_GameEngine.KeyUp((int)e.KeyCode);
            float x = 0, y = 0, z = 0;

            m_GameEngine.GetCameraInfo("Position", out x, out y, out z);
            this.Text = "BOOM! Editor | Camera Position: (" + x + ", " + y + ", " + z + ")";

            if (e.Control && e.KeyCode == Keys.Z)
            {
                e.Handled = true;
            }

            if (e.Control && e.KeyCode == Keys.Y)
            {
                e.Handled = true;
            }
        }