Example #1
0
        void ListenerKeyDown(object sender, KeyEventArgs e)
        {
            e.Handled = true;
            m_GameEngine.KeyDown((int)e.KeyCode);

            if (e.KeyCode == Keys.X)
            {
                this.m_GameEngine.LockMouseToCamera();
            }
            else if (e.KeyCode == Keys.Delete)
            {
                this.m_GameEngine.RemoveSelectedEntities();
            }
        }