Пример #1
0
 public void Copy(XInputGamepad source)
 {
     sThumbLX      = source.sThumbLX;
     sThumbLY      = source.sThumbLY;
     sThumbRX      = source.sThumbRX;
     sThumbRY      = source.sThumbRY;
     bLeftTrigger  = source.bLeftTrigger;
     bRightTrigger = source.bRightTrigger;
     wButtons      = source.wButtons;
 }
Пример #2
0
        public override bool Equals(object obj)
        {
            if (!(obj is XInputGamepad))
            {
                return(false);
            }
            XInputGamepad source = (XInputGamepad)obj;

            return((sThumbLX == source.sThumbLX) &&
                   (sThumbLY == source.sThumbLY) &&
                   (sThumbRX == source.sThumbRX) &&
                   (sThumbRY == source.sThumbRY) &&
                   (bLeftTrigger == source.bLeftTrigger) &&
                   (bRightTrigger == source.bRightTrigger) &&
                   (wButtons == source.wButtons));
        }