public bool Equals(MouseState other) { return(leftButton.Equals(other.leftButton) && middleButton.Equals(other.middleButton) && rightButton.Equals(other.rightButton) && xButton1.Equals(other.xButton1) && xButton2.Equals(other.xButton2) && x.Equals(other.x) && y.Equals(other.y) && wheelDelta == other.wheelDelta); }
/// <summary> /// Implements the ==. /// </summary> /// <param name="left">The left.</param> /// <param name="right">The right.</param> /// <returns>The result of the operator.</returns> public static bool operator ==(MouseState left, MouseState right) { return(left.Equals(right)); }