protected override void Initialize() { this.IsMouseVisible = true; this.graphics.IsFullScreen = true;//make it full this.stateManager = new StateManager(); graphics.ApplyChanges(); base.Initialize(); }
public void CheckForKeyboardInput(StateManager stateManager, Viewport viewport) { this.stateManager = stateManager; this.viewport = viewport; if (Keyboard.GetState().IsKeyDown(Keys.RightShift)) { this.graphics.IsFullScreen = false; this.graphics.ApplyChanges(); } }