예제 #1
0
 private static extern int XInputGetStateSecret14(int playerIndex, out XInputStateSecret struc);
예제 #2
0
 public static extern int XInputGetStateSecret(int playerIndex, out XInputStateSecret struc);
예제 #3
0
 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;
     }
 }