Undocumented hack to get all force feedback devices. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Tue, 05 Aug 2008 16:48:53 +0000
branchgsoc2008_force_feedback
changeset 2607 e0ca521516f6
parent 2606 bb175d957174
child 2608 7c7a63f22afa
Undocumented hack to get all force feedback devices.
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)) {