示例#1
0
        // Release any resources taken up by the components
        public override void UnloadContent()
        {
            ScreenManager.Game.Components.Remove(bciControl);
            bciControl.Dispose();
            ScreenManager.Game.Components.Remove(ssvepDX);
            ssvepDX.Dispose();

            InterceptKeys.Unhook();
            base.UnloadContent();
        }
示例#2
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            // Start main application GUI
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            AppSelectionGUI gui = new AppSelectionGUI();

            Application.Run(gui);

            // Start XNA
            using (Game1 game = new Game1(gui.selectedApp))
            {
                InterceptKeys.Hook();
                game.Run();
                InterceptKeys.Unhook();
            }
        }
示例#3
0
 public static void Shutdown()
 {
     InterceptKeys.Unhook();
 }