# HG changeset patch # User Edgar Simo # Date 1218008562 0 # Node ID cdea9a70dade82dd7e0a08a2b16b0289eabc1a10 # Parent 71a835ee438ab18c6e5b600f915d554633b1a8e1 Enabled capabilities again. diff -r 71a835ee438a -r cdea9a70dade src/haptic/win32/SDL_syshaptic.c --- 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,