예제 #1
0
파일: StartUp.cs 프로젝트: glocklueng/px360
 public static void Main(string[] args)
 {
     using (X360ControllerGame game = new X360ControllerGame())
     {
         game.Run();
     }
 }
예제 #2
0
        public SetUpInterface(X360ControllerGame game, GraphicsDeviceManager graphics, ContentManager content)
        {
            this.game = game;
            this.graphics = graphics;
            this.content = content;

            this.game.TargetElapsedTime = TimeSpan.FromTicks(333333);
            this.game.InactiveSleepTime = TimeSpan.FromSeconds(1);

            this.graphics.SupportedOrientations = DisplayOrientation.LandscapeLeft;

            Thread.CurrentThread.Name = "Rendering Loop Thread";

            this.game.Window.AllowUserResizing = true;
            this.game.Window.ClientSizeChanged += this.WindowSizeChanged;
            this.graphics.PreparingDeviceSettings += this.WindowSizeChanged;
        }
예제 #3
0
 public BindKeyInput(X360ControllerGame game, Window window, CreationFlag creationFlags) : base(window, creationFlags, TypeName)
 {
     this.game = game;
 }
예제 #4
0
 public BindKeyInputControlsCreator(X360ControllerGame game)
 {
     this.game = game;
 }