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