Exemple #1
0
 public static void Main(string[] args)
 {
     using (X360ControllerGame game = new X360ControllerGame())
     {
         game.Run();
     }
 }
Exemple #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;
        }
Exemple #3
0
 public BindKeyInput(X360ControllerGame game, Window window, CreationFlag creationFlags) : base(window, creationFlags, TypeName)
 {
     this.game = game;
 }
Exemple #4
0
 public BindKeyInputControlsCreator(X360ControllerGame game)
 {
     this.game = game;
 }