Example #1
0
        public void UpdateAxis(Joystick j, int value)
        {
            if (j.Equals(Joystick.Horizontal))
            {
                X = value;
            }
            else
            {
                Y = value;
            }

            OnChange(X, Y);
        }
Example #2
0
 /// <inheritdoc/>
 public bool Equals(JoystickButton other)
 {
     return(other != null && Joystick.Equals(other.Joystick) && ButtonNumber == other.ButtonNumber);
 }