private static extern int XInputGetStateSecret14(int playerIndex, out XInputStateSecret struc);
public static extern int XInputGetStateSecret(int playerIndex, out XInputStateSecret struc);
public int GetStateSecret(int dwUserIndex, out XInputStateSecret pStateSecret) { switch (dllIndex) { case 0: return XInputGetStateSecret14(dwUserIndex, out pStateSecret); case 1: return XInputGetStateSecret13(dwUserIndex, out pStateSecret); default: pStateSecret = new XInputStateSecret(); return -1; } }