// 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(); }
/// <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(); } }
public static void Shutdown() { InterceptKeys.Unhook(); }