Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Enabled capabilities again.
  • Loading branch information
bobbens committed Aug 6, 2008
1 parent c0c1f0c commit 05935d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/haptic/win32/SDL_syshaptic.c
Expand Up @@ -67,7 +67,7 @@ struct haptic_hwdata
{
LPDIRECTINPUTDEVICE2 device;
DWORD axes[3];
/* DIDEVCAPS capabilities; */
DIDEVCAPS capabilities;
};


Expand Down Expand Up @@ -313,15 +313,14 @@ SDL_SYS_HapticOpenFromInstance(SDL_Haptic * haptic, DIDEVICEINSTANCE instance)
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,
Expand Down

0 comments on commit 05935d3

Please sign in to comment.