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

Commit

Permalink
Disabled getting capabilities (not used atm).
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Aug 4, 2008
1 parent 4bb9877 commit 001e737
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/haptic/win32/SDL_syshaptic.c
Expand Up @@ -66,7 +66,7 @@ static struct
struct haptic_hwdata
{
LPDIRECTINPUTDEVICE2 device;
DIDEVCAPS capabilities;
/* DIDEVCAPS capabilities; */
};


Expand Down Expand Up @@ -287,13 +287,15 @@ SDL_SYS_HapticOpenFromInstance(SDL_Haptic * haptic, DIDEVICEINSTANCE instance)
goto query_err;
}

#if 0
/* Get capabilities. */
ret = IDirectInputDevice2_GetCapabilities( haptic->hwdata->device,
&haptic->hwdata->capabilities );
if (FAILED(ret)) {
DI_SetError("Getting device capabilities",ret);
goto acquire_err;
}
#endif

/* Acquire the device. */
ret = IDirectInputDevice2_Acquire(haptic->hwdata->device);
Expand Down

0 comments on commit 001e737

Please sign in to comment.