/// <summary>
        /// 
        /// </summary>
        /// <param name="game"></param>
        public ScreenManager(Game game)
            : base(game)
        {
            screens = new List<Screen>();
            tempScreens = new List<Screen>();

            Input = new InputManager(new Vector2(Game.GraphicsDevice.Viewport.Width, Game.GraphicsDevice.Viewport.Height));
        }
Ejemplo n.º 2
0
        public override void HandleInput(GameTime gameTime, InputManager input)
        {
            MouseState MouseState = input.MouseState;

            exitButton.Update(MouseState);
            patientButton.Update(MouseState);
            optionsButton.Update(MouseState);
        }
 public override void HandleInput(GameTime gameTime, InputManager input)
 {
     state = input.MouseState;
      	        base.HandleInput(gameTime, input);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Allows the screen to accept and handle input.
 /// </summary>
 /// <param name="gameTime">Provides a snapshot of timing values.</param>
 /// <param name="input">The input manager that handles the different hardware inputs.</param>
 public virtual void HandleInput(GameTime gameTime, InputManager input)
 {
 }