コード例 #1
0
        public override void Update(GameTime gameTime)
        {
            if (FormChildren != null)
            {
                Vector2 MStick = MyPlayer.MyController.MenuStick(UseLTrig, UseRTrig, true, false, false);

                if (MStick.Length() > 0.1f)
                {
                    if (CurrentForm == null || CurrentForm.MarkerMove(MStick))
                    {
                        if (Math.Abs(MStick.Y) < Math.Abs(MStick.X))
                        {
                            if (MStick.X < 0)
                            {
                                MoveMark((float)Math.PI * 1.5f);
                            }
                            else
                            {
                                MoveMark((float)Math.PI * 0.5f);
                            }
                        }
                        else
                        {
                            if (MStick.Y > 0)
                            {
                                MoveMark(0);
                            }
                            else
                            {
                                MoveMark((float)Math.PI);
                            }
                        }
                    }
                }

                if (MyPlayer.MyController.AButton() && !MyPlayer.MyController.AButtonPrevious())
                {
                    TriggerCurrent();
                }
            }

            base.Update(gameTime);
        }