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; }
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)); }