Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
More windows haptic patches.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Jul 31, 2008
1 parent c4add34 commit 4fed009
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/haptic/win32/SDL_syshaptic.c
Expand Up @@ -74,6 +74,7 @@ struct haptic_hwdata
struct haptic_hweffect
{
DIEFFECT effect;
LPDIRECTINPUTEFFECT ref;
};


Expand Down Expand Up @@ -190,7 +191,7 @@ SDL_SYS_HapticName(int index)
* Callback to get all supported effects.
*/
#define EFFECT_TEST(e,s) \
if (pei->guid == &(e)) \
if (&pei->guid == &(e)) \
haptic->supported |= (s)
static BOOL CALLBACK
DI_EffectCallback(LPCDIEFFECTINFO pei, LPVOID pv)
Expand Down Expand Up @@ -978,8 +979,8 @@ SDL_SYS_HapticUpdateEffect(SDL_Haptic * haptic,

/* Create the actual effect. */
ret = IDirectInputDevice2_SetParameters(effect->hweffect->ref, &temp, flags);
if (ret != FF_OK) {
SDL_SetError("Haptic: Unable to update effect: %s.", FFStrError(ret));
if (FAILED(ret)) {
DI_SetError("Unable to update effect",ret);
goto err_update;
}

Expand Down

0 comments on commit 4fed009

Please sign in to comment.