Simplified some error messages.
1.1 --- a/src/haptic/darwin/SDL_syshaptic.c Mon Aug 11 11:40:44 2008 +0000
1.2 +++ b/src/haptic/darwin/SDL_syshaptic.c Mon Aug 11 15:29:28 2008 +0000
1.3 @@ -195,18 +195,17 @@
1.4 if (refCF) {
1.5 if (!CFNumberGetValue(refCF, kCFNumberLongType,
1.6 &SDL_hapticlist[numhaptics].usagePage))
1.7 - SDL_SetError("Haptic: CFNumberGetValue error retrieving pDevice->usagePage.");
1.8 + SDL_SetError("Haptic: Recieving device's usage page.");
1.9 refCF = CFDictionaryGetValue(hidProperties, CFSTR(kIOHIDPrimaryUsageKey));
1.10 if (refCF) {
1.11 if (!CFNumberGetValue(refCF, kCFNumberLongType,
1.12 &SDL_hapticlist[numhaptics].usage))
1.13 - SDL_SetError("Haptic: CFNumberGetValue error retrieving pDevice->usage.");
1.14 + SDL_SetError("Haptic: Recieving device's usage.");
1.15 }
1.16 }
1.17 CFRelease(hidProperties);
1.18 }
1.19
1.20 -
1.21 /* Device has been added. */
1.22 numhaptics++;
1.23 }