Example #1
0
        protected override void Initialize()
        {
            this.IsMouseVisible = true;
            this.graphics.IsFullScreen = true;//make it full
            this.stateManager = new StateManager();
            graphics.ApplyChanges();

            base.Initialize();
        }
Example #2
0
 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();
     }
 }