comparison src/haptic/win32/SDL_syshaptic.c @ 2650:77b5f12bfe11 gsoc2008_force_feedback

Yep, 0 is the correct value here
author Sam Lantinga <slouken@libsdl.org>
date Mon, 25 Aug 2008 09:58:51 +0000
parents 9408be170bff
children ff33a65123ce
comparison
equal deleted inserted replaced
2649:7961f1f74dc8 2650:77b5f12bfe11
182 return -1; 182 return -1;
183 } 183 }
184 184
185 /* Look for haptic devices. */ 185 /* Look for haptic devices. */
186 ret = IDirectInput_EnumDevices( dinput, 186 ret = IDirectInput_EnumDevices( dinput,
187 0, /* Not sure if this is legal, but gets all devices. */ 187 0,
188 EnumHapticsCallback, 188 EnumHapticsCallback,
189 NULL, DIEDFL_FORCEFEEDBACK | DIEDFL_ATTACHEDONLY); 189 NULL, DIEDFL_FORCEFEEDBACK | DIEDFL_ATTACHEDONLY);
190 if (FAILED(ret)) { 190 if (FAILED(ret)) {
191 DI_SetError("Enumerating DirectInput devices",ret); 191 DI_SetError("Enumerating DirectInput devices",ret);
192 return -1; 192 return -1;