Пример #1
0
 /// <summary>
 /// Sets the mouse speed of this profile to the nearest valid mouse speed.
 /// </summary>
 public void ValidateSpeed()
 {
     Speed = MouseParams.ValidateSpeed(Speed);
 }
Пример #2
0
 /// <summary>
 /// Initialises a new instance of the <see cref="Profile"/> class with the specified properties.
 /// </summary>
 /// <param name="name">the name of this profile.</param>
 /// <param name="speed">the mouse speed of this profile.</param>
 /// <param name="acceleration">the mouse acceleration state of this profile.</param>
 public Profile(string name, int speed, bool acceleration)
 {
     Name         = name;
     Speed        = MouseParams.ValidateSpeed(speed);
     Acceleration = acceleration;
 }