示例#1
0
        public override void Update()
        {
            Vector2 vLeft = pad.LeftStick();

            vLeft.Y *= -1;
            Position = Position + vLeft * 5.0f;
            //ZoomFactor = ZoomFactor + pad.RightStick().Y;

            //Zoom = (float)Math.Log(ZoomFactor) / 3.0f + 1.0f;
            float yRight = pad.RightStick().Y;

            //if(yRight > 0.0f)
            Zoom    += yRight;
            Position = GetClampedPos();



            base.Update();
        }