Added new HIDAPI driver files to the Xcode projects

This commit is contained in:
Sam Lantinga
2019-12-19 15:18:50 -08:00
parent 8d742d4745
commit 20daf54fd8
4 changed files with 39 additions and 3 deletions

View File

@@ -458,7 +458,7 @@ GetDeviceInfo(IOHIDDeviceRef hidDevice, recDevice *pDevice)
if ((!refCF) || (!CFStringGetCString(refCF, product_string, sizeof(product_string), kCFStringEncodingUTF8))) {
SDL_strlcpy(product_string, "Unidentified joystick", sizeof(product_string));
}
for (i = SDL_strlen(manufacturer_string) - 1; i > 0; --i) {
for (i = (int)SDL_strlen(manufacturer_string) - 1; i > 0; --i) {
if (SDL_isspace(manufacturer_string[i])) {
manufacturer_string[i] = '\0';
} else {