Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Simplified some error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Aug 11, 2008
1 parent 4c23944 commit a2bc693
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/haptic/darwin/SDL_syshaptic.c
Expand Up @@ -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++;
}
Expand Down

0 comments on commit a2bc693

Please sign in to comment.