src/haptic/win32/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2611 cdea9a70dade
parent 2609 eec0c81ede06
child 2612 63ea27a96a96
--- a/src/haptic/win32/SDL_syshaptic.c	Tue Aug 05 18:52:22 2008 +0000
+++ b/src/haptic/win32/SDL_syshaptic.c	Wed Aug 06 07:42:42 2008 +0000
@@ -67,7 +67,7 @@
 {
    LPDIRECTINPUTDEVICE2 device;
    DWORD axes[3];
-   /* DIDEVCAPS capabilities; */
+   DIDEVCAPS capabilities;
 };
 
 
@@ -313,15 +313,14 @@
       goto query_err;
    }
 
-#if 0
    /* Get capabilities. */
+   haptic->hwdata->capabilities.dwSize = sizeof(DIDEVCAPS);
    ret = IDirectInputDevice2_GetCapabilities( haptic->hwdata->device,
                                               &haptic->hwdata->capabilities );
    if (FAILED(ret)) {
       DI_SetError("Getting device capabilities",ret);
       goto acquire_err;
    }
-#endif
 
    /* Get number of axes. */
    ret = IDirectInputDevice2_EnumObjects( haptic->hwdata->device,