示例#1
0
 public static int HALGetJoystickPOVs(byte joystickNum, ref HALJoystickPOVs povs)
 {
     povs.povs = new HALJoystickPOVArray();
     var povData = halData["joysticks"][joystickNum]["povs"];
     for (int i = 0; i < povData.Length; i++)
     {
         povs.povs[i] = (short)povData[i];
     }
     povs.count = (ushort)povData.Length;
     return 0;
 }
示例#2
0
 public static extern int HALGetJoystickPOVs(byte joystickNum, ref HALJoystickPOVs povs);