src/haptic/windows/SDL_syshaptic.c
changeset 7884 15027aa2cf21
parent 7858 170c9f4c3c28
child 8093 b43765095a6f
equal deleted inserted replaced
7883:62f562a475e1 7884:15027aa2cf21
  1188 
  1188 
  1189     case SDL_HAPTIC_CUSTOM:
  1189     case SDL_HAPTIC_CUSTOM:
  1190         return &GUID_CustomForce;
  1190         return &GUID_CustomForce;
  1191 
  1191 
  1192     default:
  1192     default:
  1193         SDL_SetError("Haptic: Unknown effect type.");
       
  1194         return NULL;
  1193         return NULL;
  1195     }
  1194     }
  1196 }
  1195 }
  1197 
  1196 
  1198 
  1197 
  1205 {
  1204 {
  1206     HRESULT ret;
  1205     HRESULT ret;
  1207     REFGUID type = SDL_SYS_HapticEffectType(base);
  1206     REFGUID type = SDL_SYS_HapticEffectType(base);
  1208 
  1207 
  1209     if ((type == NULL) && (!haptic->hwdata->bXInputHaptic)) {
  1208     if ((type == NULL) && (!haptic->hwdata->bXInputHaptic)) {
       
  1209         SDL_SetError("Haptic: Unknown effect type.");
  1210         goto err_hweffect;
  1210         goto err_hweffect;
  1211     }
  1211     }
  1212 
  1212 
  1213     /* Alloc the effect. */
  1213     /* Alloc the effect. */
  1214     effect->hweffect = (struct haptic_hweffect *)
  1214     effect->hweffect = (struct haptic_hweffect *)