Mercurial > sdl-ios-xcode
changeset 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 | 91fd5d3cb90e |
files | src/haptic/darwin/SDL_syshaptic.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
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++; }