diff src/haptic/win32/SDL_syshaptic.c @ 2607:e0ca521516f6 gsoc2008_force_feedback

Undocumented hack to get all force feedback devices.
author Edgar Simo <bobbens@gmail.com>
date Tue, 05 Aug 2008 16:48:53 +0000
parents bb175d957174
children eec0c81ede06
line wrap: on
line diff
--- 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)) {