Mercurial > sdl-ios-xcode
comparison src/haptic/win32/SDL_syshaptic.c @ 2607:e0ca521516f6 gsoc2008_force_feedback
Undocumented hack to get all force feedback devices.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Tue, 05 Aug 2008 16:48:53 +0000 |
parents | bb175d957174 |
children | eec0c81ede06 |
comparison
equal
deleted
inserted
replaced
2606:bb175d957174 | 2607:e0ca521516f6 |
---|---|
150 return -1; | 150 return -1; |
151 } | 151 } |
152 | 152 |
153 /* Look for haptic devices. */ | 153 /* Look for haptic devices. */ |
154 ret = IDirectInput_EnumDevices( dinput, | 154 ret = IDirectInput_EnumDevices( dinput, |
155 DIDEVTYPE_DEVICE, | 155 0, /* Not sure if this is legal, but gets all devices. */ |
156 EnumHapticsCallback, | 156 EnumHapticsCallback, |
157 NULL, DIEDFL_FORCEFEEDBACK | DIEDFL_ATTACHEDONLY); | 157 NULL, DIEDFL_FORCEFEEDBACK | DIEDFL_ATTACHEDONLY); |
158 if (FAILED(ret)) { | 158 if (FAILED(ret)) { |
159 DI_SetError("Enumerating DirectInput devices",ret); | 159 DI_SetError("Enumerating DirectInput devices",ret); |
160 return -1; | 160 return -1; |