[SVN] r3892 - branches/gsoc2008_force_feedback/src/haptic/win32
svn-owner at libsdl.org
svn-owner at libsdl.org
Tue Aug 5 09:48:54 PDT 2008
Author: bobbens
Date: 2008-08-05 09:48:53 -0700 (Tue, 05 Aug 2008)
New Revision: 3892
Modified:
branches/gsoc2008_force_feedback/src/haptic/win32/SDL_syshaptic.c
Log:
Undocumented hack to get all force feedback devices.
Modified: branches/gsoc2008_force_feedback/src/haptic/win32/SDL_syshaptic.c
===================================================================
--- branches/gsoc2008_force_feedback/src/haptic/win32/SDL_syshaptic.c 2008-08-05 16:33:50 UTC (rev 3891)
+++ branches/gsoc2008_force_feedback/src/haptic/win32/SDL_syshaptic.c 2008-08-05 16:48:53 UTC (rev 3892)
@@ -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)) {
More information about the SVN
mailing list