src/haptic/win32/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2650 77b5f12bfe11
parent 2646 9408be170bff
child 2651 ff33a65123ce
equal deleted inserted replaced
2649:7961f1f74dc8 2650:77b5f12bfe11
   182       return -1;
   182       return -1;
   183    }
   183    }
   184 
   184 
   185    /* Look for haptic devices. */
   185    /* Look for haptic devices. */
   186    ret = IDirectInput_EnumDevices( dinput,
   186    ret = IDirectInput_EnumDevices( dinput,
   187                                    0, /* Not sure if this is legal, but gets all devices. */
   187                                    0,
   188                                    EnumHapticsCallback,
   188                                    EnumHapticsCallback,
   189                                    NULL, DIEDFL_FORCEFEEDBACK | DIEDFL_ATTACHEDONLY);
   189                                    NULL, DIEDFL_FORCEFEEDBACK | DIEDFL_ATTACHEDONLY);
   190    if (FAILED(ret)) {
   190    if (FAILED(ret)) {
   191       DI_SetError("Enumerating DirectInput devices",ret);
   191       DI_SetError("Enumerating DirectInput devices",ret);
   192       return -1;
   192       return -1;