Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Simplified some error messages.

  • Loading branch information
bobbens committed Aug 11, 2008
1 parent 4c23944 commit a2bc693af578543eb479d1e21f4d6413e0d82efd

File 1 of 1 in a2bc693

@@ -195,18 +195,17 @@ SDL_SYS_HapticInit(void)
if (refCF) {
if (!CFNumberGetValue(refCF, kCFNumberLongType,
&SDL_hapticlist[numhaptics].usagePage))
SDL_SetError("Haptic: CFNumberGetValue error retrieving pDevice->usagePage.");
SDL_SetError("Haptic: Recieving device's usage page.");
refCF = CFDictionaryGetValue(hidProperties, CFSTR(kIOHIDPrimaryUsageKey));
if (refCF) {
if (!CFNumberGetValue(refCF, kCFNumberLongType,
&SDL_hapticlist[numhaptics].usage))
SDL_SetError("Haptic: CFNumberGetValue error retrieving pDevice->usage.");
SDL_SetError("Haptic: Recieving device's usage.");
}
}
CFRelease(hidProperties);
}


/* Device has been added. */
numhaptics++;
}

0 comments on commit a2bc693

Please sign in to comment.