private void ApplyDeadZone(GamePadDeadZone dz) { switch (dz) { case GamePadDeadZone.None: break; case GamePadDeadZone.IndependentAxes: left.X = GamePad.ExcludeAxisDeadZone(left.X, GamePad.LeftDeadZone); left.Y = GamePad.ExcludeAxisDeadZone(left.Y, GamePad.LeftDeadZone); right.X = GamePad.ExcludeAxisDeadZone(right.X, GamePad.RightDeadZone); right.Y = GamePad.ExcludeAxisDeadZone(right.Y, GamePad.RightDeadZone); break; case GamePadDeadZone.Circular: left = ExcludeCircularDeadZone(left, GamePad.LeftDeadZone); right = ExcludeCircularDeadZone(right, GamePad.RightDeadZone); break; } }