comparison src/haptic/darwin/SDL_syshaptic.c @ 2642:b04679da6627 gsoc2008_force_feedback

Simplified some error messages.
author Edgar Simo <bobbens@gmail.com>
date Mon, 11 Aug 2008 15:29:28 +0000
parents e1e1be935178
children 269ba4f28d0e
comparison
equal deleted inserted replaced
2641:e1e1be935178 2642:b04679da6627
193 if ((result == KERN_SUCCESS) && hidProperties) { 193 if ((result == KERN_SUCCESS) && hidProperties) {
194 refCF = CFDictionaryGetValue(hidProperties, CFSTR(kIOHIDPrimaryUsagePageKey)); 194 refCF = CFDictionaryGetValue(hidProperties, CFSTR(kIOHIDPrimaryUsagePageKey));
195 if (refCF) { 195 if (refCF) {
196 if (!CFNumberGetValue(refCF, kCFNumberLongType, 196 if (!CFNumberGetValue(refCF, kCFNumberLongType,
197 &SDL_hapticlist[numhaptics].usagePage)) 197 &SDL_hapticlist[numhaptics].usagePage))
198 SDL_SetError("Haptic: CFNumberGetValue error retrieving pDevice->usagePage."); 198 SDL_SetError("Haptic: Recieving device's usage page.");
199 refCF = CFDictionaryGetValue(hidProperties, CFSTR(kIOHIDPrimaryUsageKey)); 199 refCF = CFDictionaryGetValue(hidProperties, CFSTR(kIOHIDPrimaryUsageKey));
200 if (refCF) { 200 if (refCF) {
201 if (!CFNumberGetValue(refCF, kCFNumberLongType, 201 if (!CFNumberGetValue(refCF, kCFNumberLongType,
202 &SDL_hapticlist[numhaptics].usage)) 202 &SDL_hapticlist[numhaptics].usage))
203 SDL_SetError("Haptic: CFNumberGetValue error retrieving pDevice->usage."); 203 SDL_SetError("Haptic: Recieving device's usage.");
204 } 204 }
205 } 205 }
206 CFRelease(hidProperties); 206 CFRelease(hidProperties);
207 } 207 }
208
209 208
210 /* Device has been added. */ 209 /* Device has been added. */
211 numhaptics++; 210 numhaptics++;
212 } 211 }
213 else { /* Free the unused device. */ 212 else { /* Free the unused device. */