src/haptic/win32/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2605 0ea3be6e81a7
parent 2604 4eee4d565368
child 2606 bb175d957174
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) {