comparison src/haptic/win32/SDL_syshaptic.c @ 2646:9408be170bff gsoc2008_force_feedback

Added SDL_HapticStopAll. Cleaned up the dummy haptic driver a bit.
author Edgar Simo <bobbens@gmail.com>
date Sun, 24 Aug 2008 17:32:50 +0000
parents 269ba4f28d0e
children 77b5f12bfe11
comparison
equal deleted inserted replaced
2645:269ba4f28d0e 2646:9408be170bff
1342 1342
1343 return 0; 1343 return 0;
1344 } 1344 }
1345 1345
1346 1346
1347 /*
1348 * Stops all the playing effects on the device.
1349 */
1350 int
1351 SDL_SYS_HapticUnpause(SDL_Haptic * haptic)
1352 {
1353 HRESULT ret;
1354
1355 /* Try to stop the effects. */
1356 ret = IDirectInputDevice2_SendForceFeedbackCommand( haptic->hwdata->device,
1357 DISFFC_STOPALL );
1358 if (FAILED(ret)) {
1359 DI_SetError("Stopping the device",ret);
1360 return -1;
1361 }
1362
1363 return 0;
1364 }
1365
1366
1347 #endif /* SDL_HAPTIC_DINPUT */ 1367 #endif /* SDL_HAPTIC_DINPUT */