public override int GetHashCode() { unchecked { var hashCode = A.GetHashCode(); hashCode = (hashCode * 397) ^ B.GetHashCode(); hashCode = (hashCode * 397) ^ X.GetHashCode(); hashCode = (hashCode * 397) ^ Y.GetHashCode(); hashCode = (hashCode * 397) ^ LeftGrip.GetHashCode(); hashCode = (hashCode * 397) ^ RightGrip.GetHashCode(); hashCode = (hashCode * 397) ^ Select.GetHashCode(); hashCode = (hashCode * 397) ^ Start.GetHashCode(); hashCode = (hashCode * 397) ^ Steam.GetHashCode(); hashCode = (hashCode * 397) ^ LeftBumper.GetHashCode(); hashCode = (hashCode * 397) ^ RightBumper.GetHashCode(); hashCode = (hashCode * 397) ^ LeftStickX.GetHashCode(); hashCode = (hashCode * 397) ^ LeftStickY.GetHashCode(); hashCode = (hashCode * 397) ^ LeftStickClick.GetHashCode(); hashCode = (hashCode * 397) ^ RightPadX.GetHashCode(); hashCode = (hashCode * 397) ^ RightPadY.GetHashCode(); hashCode = (hashCode * 397) ^ RightPadClick.GetHashCode(); hashCode = (hashCode * 397) ^ LeftPadClick.GetHashCode(); hashCode = (hashCode * 397) ^ LeftTrigger.GetHashCode(); hashCode = (hashCode * 397) ^ RightTrigger.GetHashCode(); hashCode = (hashCode * 397) ^ LeftPadTouched.GetHashCode(); return(hashCode); } }