Simplified some error messages. gsoc2008_force_feedback
authorEdgar Simo
Mon, 11 Aug 2008 15:29:28 +0000
branchgsoc2008_force_feedback
changeset 2642b04679da6627
parent 2641 e1e1be935178
child 2643 91fd5d3cb90e
Simplified some error messages.
src/haptic/darwin/SDL_syshaptic.c
     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        }