public void UpdateAxis(Joystick j, int value) { if (j.Equals(Joystick.Horizontal)) { X = value; } else { Y = value; } OnChange(X, Y); }
/// <inheritdoc/> public bool Equals(JoystickButton other) { return(other != null && Joystick.Equals(other.Joystick) && ButtonNumber == other.ButtonNumber); }