public override int GetHashCode() { unchecked { int hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ ButtonDown.GetHashCode(); hashCode = (hashCode * 397) ^ ButtonUp.GetHashCode(); hashCode = (hashCode * 397) ^ ButtonRight.GetHashCode(); hashCode = (hashCode * 397) ^ ButtonLeft.GetHashCode(); hashCode = (hashCode * 397) ^ MinusButton.GetHashCode(); hashCode = (hashCode * 397) ^ CaptureButton.GetHashCode(); return(hashCode); } }