コード例 #1
0
 /// <summary>
 /// This is called when the game should draw itself.
 /// </summary>
 /// <param name="gameTime">Provides a snapshot of timing values.</param>
 protected override void Draw(GameTime gameTime)
 {
     //TODO: Add your drawing code here
     GamePadEx.Update(gameTime);
     TouchPanelEx.Update(gameTime);
     ScreenUtil.Draw(gameTime, spriteBatch);
 }
コード例 #2
0
 /// <summary>
 /// Allows the game to run logic such as updating the world,
 /// checking for collisions, gathering input, and playing audio.
 /// </summary>
 /// <param name="gameTime">Provides a snapshot of timing values.</param>
 protected override void Update(GameTime gameTime)
 {
     // TODO: Add your update logic here
     base.Update(gameTime);
     GamePadEx.Update(gameTime);
     TouchPanelEx.Update(gameTime);
     ScreenUtil.Update(gameTime);
 }
コード例 #3
0
        public static void Update(GameTime gameTime)
        {
            GamePadEx.Update(gameTime);
            KeyboardEx.Update(gameTime);
            TouchPanelEx.Update(gameTime);

            if (CurrentScreen != null)
            {
                CurrentScreen.Update(gameTime);
            }
        }