public ScreenManager(GameSession game) : base(game) { input.Update(); #if XBOX InputState.InputMethod = InputMethods.Gamepad; #else InputState.InputMethod = InputMethods.KeyboardMouse; #endif }
public GameSession() { Current = this; Content.RootDirectory = "Content"; Item.Initialize(); Cutscene.LoadFromFile(); screenManager = new ScreenManager(this); fpsCounter = new FrameRateCounter(this); graphics = new GraphicsDeviceManager(this); Resolution.Init(ref graphics); #if XBOX Resolution.SetResolution(this.Window.ClientBounds.Width, this.Window.ClientBounds.Height, true); #else //Resolution.SetResolution(1920, 1080, true); Resolution.SetResolution(1280, 720, false); #endif Resolution.SetVirtualResolution(1280, 720); Components.Add(screenManager); //Components.Add(fpsCounter); }