1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using System;
- namespace GamePadTest
- {
- static class Program
- {
- private static Game1 game;
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- static void Main (string[] args)
- {
- MonoMac.AppKit.NSApplication.Init ();
-
- using (var p = new MonoMac.Foundation.NSAutoreleasePool ()) {
- MonoMac.AppKit.NSApplication.SharedApplication.Delegate = new AppDelegate ();
- MonoMac.AppKit.NSApplication.Main (args);
- }
- }
-
- class AppDelegate : MonoMac.AppKit.NSApplicationDelegate
- {
-
- public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
- {
- using (game = new Game1()) {
- game.Run ();
- }
- }
-
- public override bool ApplicationShouldTerminateAfterLastWindowClosed (MonoMac.AppKit.NSApplication sender)
- {
- return true;
- }
- }
- }
- }
|