public static int XInputGetState( int dwUserIndex, // [in] Index of the gamer associated with the device ref XInputState pState // [out] Receives the current state ) { return IsWin8OrNewer ? XInput14.XInputGetState(dwUserIndex, ref pState) : XInput910.XInputGetState(dwUserIndex, ref pState); }
public static int XInputGetState ( int dwUserIndex, // [in] Index of the gamer associated with the device ref XInputState pState // [out] Receives the current state ) { return(IsWin8OrNewer ? XInput14.XInputGetState(dwUserIndex, ref pState) : XInput910.XInputGetState(dwUserIndex, ref pState)); }
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))); }
internal static extern int XInputGetState ( int dwUserIndex, // [in] Index of the gamer associated with the device ref XInputState pState // [out] Receives the current state );
public void Copy(XInputState source) { PacketNumber = source.PacketNumber; Gamepad.Copy(source.Gamepad); }
public static extern int XInputGetState( int dwUserIndex, // [in] Index of the gamer associated with the device ref XInputState pState // [out] Receives the current state );
private static extern int XInputGetState9(int dwUserIndex, ref XInputState pState);
public int GetState(int dwUserIndex, ref XInputState pState) { switch (dllIndex) { case 0: return XInputGetState14(dwUserIndex, ref pState); case 1: return XInputGetState13(dwUserIndex, ref pState); case 2: return XInputGetState9(dwUserIndex, ref pState); default: return 0; } }