Пример #1
0
 public bool Equals(XInputGamepad rhs)
 {
     return
         (Buttons == rhs.Buttons &&
          LeftTrigger == rhs.LeftTrigger &&
          RightTrigger == rhs.RightTrigger &&
          LeftThumbX == rhs.LeftThumbX &&
          LeftThumbY == rhs.LeftThumbY &&
          RightThumbX == rhs.RightThumbX &&
          RightThumbY == rhs.RightThumbY);
 }
Пример #2
0
 public bool Equals(XInputGamepad rhs)
 {
     return
         Buttons == rhs.Buttons
         && LeftTrigger == rhs.LeftTrigger
         && RightTrigger == rhs.RightTrigger
         && LeftThumbX == rhs.LeftThumbX
         && LeftThumbY == rhs.LeftThumbY
         && RightThumbX == rhs.RightThumbX
         && RightThumbY == rhs.RightThumbY;
 }