Mercurial > sdl-ios-xcode
changeset 2611:cdea9a70dade gsoc2008_force_feedback
Enabled capabilities again.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Wed, 06 Aug 2008 07:42:42 +0000 |
parents | 71a835ee438a |
children | 63ea27a96a96 |
files | src/haptic/win32/SDL_syshaptic.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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,