using System; using Chernobyl.Input.Controls.Axis; using Chernobyl.Mathematics; using Chernobyl.Mathematics.Mechanics; using Chernobyl.Mathematics.Vectors; namespace Chernobyl.Input.Controls { /// /// An interface for working with joysticks or analog sticks on a gamepad or /// other device. These "sticks" give a two dimensional position of a /// protrusion relative to a default center position. The /// value will be (0, 0) when the /// is centered. The maximum for the X and Y axes of /// the are 1. The minimum for both axes is -1. /// public interface IStick : IAxis2DControl { /// /// The region of movement which is not recognized by the device. /// refers to the region in the X axis of the /// . refers to the /// region in the X axis of the . /// /// Thrown when the /// or values of the /// instance set on the property are either less /// than 0 or greater than 1. Vector2 DeadZone { get; set; } } }