Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- 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++; }