Exemple #1
0
        // Token: 0x06000070 RID: 112 RVA: 0x0000C6F0 File Offset: 0x0000A8F0
        protected override void Update(GameTime gameTime)
        {
            int num = 0;

            InputSystem.CheckKeyboardInput();
            TouchCollection state = TouchPanel.GetState();

            InputSystem.ClearTouchData();
            foreach (TouchLocation touchLocation in state)
            {
                switch (touchLocation.State)
                {
                case TouchLocationState.Pressed:
                    InputSystem.AddTouch(touchLocation.Position.X, touchLocation.Position.Y, num);
                    break;

                case TouchLocationState.Moved:
                    InputSystem.AddTouch(touchLocation.Position.X, touchLocation.Position.Y, num);
                    break;
                }
                num++;
            }
            if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
            {
                if (FileIO.activeStageList == 0)
                {
                    switch (StageSystem.stageListPosition)
                    {
                    case 4:
                    case 5:
                        InputSystem.touchData.start = 1;
                        break;

                    default:
                        InputSystem.touchData.buttonB = 1;
                        break;
                    }
                }
                else if (StageSystem.stageMode == 2)
                {
                    if (ObjectSystem.objectEntityList[9].state == 3 && GlobalAppDefinitions.gameMode == 1)
                    {
                        ObjectSystem.objectEntityList[9].state    = 4;
                        ObjectSystem.objectEntityList[9].value[0] = 0;
                        ObjectSystem.objectEntityList[9].value[1] = 0;
                        ObjectSystem.objectEntityList[9].alpha    = 248;
                        AudioPlayback.PlaySfx(27, 0);
                    }
                }
                else
                {
                    GlobalAppDefinitions.gameMessage = 2;
                }
            }
            if (StageSystem.stageMode != 2)
            {
                EngineCallbacks.ProcessMainLoop();
            }
            try
            {
                base.Update(gameTime);
            }
            catch (GameUpdateRequiredException e)
            {
                this.HandleGameUpdateRequired(e);
            }
        }