Simplified some error messages. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Mon, 11 Aug 2008 15:29:28 +0000
branchgsoc2008_force_feedback
changeset 2642 b04679da6627
parent 2641 e1e1be935178
child 2643 91fd5d3cb90e
Simplified some error messages.
src/haptic/darwin/SDL_syshaptic.c
--- a/src/haptic/darwin/SDL_syshaptic.c	Mon Aug 11 11:40:44 2008 +0000
+++ b/src/haptic/darwin/SDL_syshaptic.c	Mon Aug 11 15:29:28 2008 +0000
@@ -195,18 +195,17 @@
             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++;
       }