comparison src/haptic/win32/SDL_syshaptic.c @ 2605:0ea3be6e81a7 gsoc2008_force_feedback

Make sure axes have force feedback actuators.
author Edgar Simo <bobbens@gmail.com>
date Tue, 05 Aug 2008 16:13:11 +0000
parents 4eee4d565368
children bb175d957174
comparison
equal deleted inserted replaced
2604:4eee4d565368 2605:0ea3be6e81a7
229 static BOOL CALLBACK 229 static BOOL CALLBACK
230 DI_DeviceObjectCallback(LPCDIDEVICEOBJECTINSTANCE dev, LPVOID pvRef) 230 DI_DeviceObjectCallback(LPCDIDEVICEOBJECTINSTANCE dev, LPVOID pvRef)
231 { 231 {
232 SDL_Haptic *haptic = (SDL_Haptic *) pvRef; 232 SDL_Haptic *haptic = (SDL_Haptic *) pvRef;
233 233
234 if (dev->dwType & DIDFT_AXIS) { 234 if ((dev->dwType & DIDFT_AXIS) && (dev->dwFlags & DIDOI_FFACTUATOR)) {
235 235
236 haptic->naxes++; 236 haptic->naxes++;
237 237
238 /* Currently using the artificial limit of 3 axes. */ 238 /* Currently using the artificial limit of 3 axes. */
239 if (haptic->naxes >= 3) { 239 if (haptic->naxes >= 3) {