# HG changeset patch # User Edgar Simo # Date 1217954933 0 # Node ID e0ca521516f6ec439d1e955a4972c03c3f7b4868 # Parent bb175d957174df7e4c8f8a9030e44fb92d3f0148 Undocumented hack to get all force feedback devices. diff -r bb175d957174 -r e0ca521516f6 src/haptic/win32/SDL_syshaptic.c --- a/src/haptic/win32/SDL_syshaptic.c Tue Aug 05 16:33:50 2008 +0000 +++ b/src/haptic/win32/SDL_syshaptic.c Tue Aug 05 16:48:53 2008 +0000 @@ -152,7 +152,7 @@ /* Look for haptic devices. */ ret = IDirectInput_EnumDevices( dinput, - DIDEVTYPE_DEVICE, + 0, /* Not sure if this is legal, but gets all devices. */ EnumHapticsCallback, NULL, DIEDFL_FORCEFEEDBACK | DIEDFL_ATTACHEDONLY); if (FAILED(ret)) {