public override void Update() { Vector2 vPan = new Vector2(); float fZoom = 0.0f; if (input.Pressed(Keys.Left)) { vPan.X -= PanSpeed; } if (input.Pressed(Keys.Right)) { vPan.X += PanSpeed; } if (input.Pressed(Keys.Up)) { if (input.Pressed(Keys.LeftShift)) { fZoom += ZoomSpeed; } else { vPan.Y -= PanSpeed; } } if (input.Pressed(Keys.Down)) { if (input.Pressed(Keys.LeftShift)) { fZoom -= ZoomSpeed; } else { vPan.Y += PanSpeed; } } Position = Position + vPan; Zoom += fZoom; Position = GetClampedPos(); base.Update(); }