コード例 #1
0
        public override bool Equals(object obj)
        {
            if ((obj == null) || (!(obj is XInputState)))
            {
                return(false);
            }

            XInputState source = (XInputState)obj;

            return(this.PacketNumber == source.PacketNumber && this.Gamepad.Equals(source.Gamepad));
        }
コード例 #2
0
 public void Copy(XInputState source)
 {
     this.PacketNumber = source.PacketNumber;
     this.Gamepad.Copy(source.Gamepad);
 }