Mercurial > sdl-ios-xcode
comparison src/haptic/win32/SDL_syshaptic.c @ 2598:5b8f8151e66d gsoc2008_force_feedback
Fixed stupid mistake.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Tue, 05 Aug 2008 11:08:59 +0000 |
parents | 79e3b1a2c590 |
children | e9641d2250e5 |
comparison
equal
deleted
inserted
replaced
2597:79e3b1a2c590 | 2598:5b8f8151e66d |
---|---|
866 | 866 |
867 | 867 |
868 /* | 868 /* |
869 * Gets the effect type from the generic SDL haptic effect wrapper. | 869 * Gets the effect type from the generic SDL haptic effect wrapper. |
870 */ | 870 */ |
871 REFGUID | 871 static REFGUID |
872 SDL_SYS_HapticEffectType(struct haptic_effect * effect) | 872 SDL_SYS_HapticEffectType(SDL_HapticEffect * effect) |
873 { | 873 { |
874 switch (effect->effect.type) { | 874 switch (effect->type) { |
875 case SDL_HAPTIC_CONSTANT: | 875 case SDL_HAPTIC_CONSTANT: |
876 return &GUID_ConstantForce; | 876 return &GUID_ConstantForce; |
877 | 877 |
878 case SDL_HAPTIC_RAMP: | 878 case SDL_HAPTIC_RAMP: |
879 return &GUID_RampForce; | 879 return &GUID_RampForce; |
923 SDL_HapticEffect * base) | 923 SDL_HapticEffect * base) |
924 { | 924 { |
925 HRESULT ret; | 925 HRESULT ret; |
926 | 926 |
927 /* Get the type. */ | 927 /* Get the type. */ |
928 REFGUID type = SDL_SYS_HapticEffectType(effect); | 928 REFGUID type = SDL_SYS_HapticEffectType(base); |
929 if (type == NULL) { | 929 if (type == NULL) { |
930 goto err_hweffect; | 930 goto err_hweffect; |
931 } | 931 } |
932 | 932 |
933 /* Alloc the effect. */ | 933 /* Alloc the effect. */ |