示例#1
0
 public static int HALGetJoystickDescriptor(byte joystickNum, ref HALJoystickDescriptor desc)
 {
     var stick = halData["joysticks"][joystickNum];
     desc.isXbox = (byte)(stick["isXbox"]);
     desc.type = stick["type"];
     desc.name = stick["name"];
     desc.axisCount = stick["axisCount"];
     desc.buttonCount = stick["buttonCount"];
     return 0;
 }
示例#2
0
 public static extern int HALGetJoystickDescriptor(byte joystickNum, ref HALJoystickDescriptor desc);