コード例 #1
0
        /// <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));
        }
コード例 #2
0
        public override void HandleInput(GameTime gameTime, InputManager input)
        {
            MouseState MouseState = input.MouseState;

            exitButton.Update(MouseState);
            patientButton.Update(MouseState);
            optionsButton.Update(MouseState);
        }
コード例 #3
0
 public override void HandleInput(GameTime gameTime, InputManager input)
 {
     state = input.MouseState;
      	        base.HandleInput(gameTime, input);
 }
コード例 #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)
 {
 }