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

            return((PacketNumber == source.PacketNumber) &&
                   (Gamepad.Equals(source.Gamepad)));
        }
示例#2
0
 public static extern int XInputGetState
 (
     int dwUserIndex,       // [in] Index of the gamer associated with the device
     ref XInputState pState // [out] Receives the current state
 );
示例#3
0
 public void Copy(XInputState source)
 {
     PacketNumber = source.PacketNumber;
     Gamepad.Copy(source.Gamepad);
 }