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; }
public static extern int HALGetJoystickDescriptor(byte joystickNum, ref HALJoystickDescriptor desc);