src/haptic/win32/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2591 07a19c1cc0a7
parent 2590 a4410ff43f41
child 2592 8152dd46fbe2
equal deleted inserted replaced
2590:a4410ff43f41 2591:07a19c1cc0a7
    64  * Haptic system hardware data.
    64  * Haptic system hardware data.
    65  */
    65  */
    66 struct haptic_hwdata
    66 struct haptic_hwdata
    67 {
    67 {
    68    LPDIRECTINPUTDEVICE2 device;
    68    LPDIRECTINPUTDEVICE2 device;
    69    DIDEVCAPS capabilities;
    69    /* DIDEVCAPS capabilities; */
    70 };
    70 };
    71 
    71 
    72 
    72 
    73 /*
    73 /*
    74  * Haptic system effect data.
    74  * Haptic system effect data.
   285    if (FAILED(ret)) {
   285    if (FAILED(ret)) {
   286       DI_SetError("Setting data format",ret);
   286       DI_SetError("Setting data format",ret);
   287       goto query_err;
   287       goto query_err;
   288    }
   288    }
   289 
   289 
       
   290 #if 0
   290    /* Get capabilities. */
   291    /* Get capabilities. */
   291    ret = IDirectInputDevice2_GetCapabilities( haptic->hwdata->device,
   292    ret = IDirectInputDevice2_GetCapabilities( haptic->hwdata->device,
   292                                               &haptic->hwdata->capabilities );
   293                                               &haptic->hwdata->capabilities );
   293    if (FAILED(ret)) {
   294    if (FAILED(ret)) {
   294       DI_SetError("Getting device capabilities",ret);
   295       DI_SetError("Getting device capabilities",ret);
   295       goto acquire_err;
   296       goto acquire_err;
   296    }
   297    }
       
   298 #endif
   297 
   299 
   298    /* Acquire the device. */
   300    /* Acquire the device. */
   299    ret = IDirectInputDevice2_Acquire(haptic->hwdata->device);
   301    ret = IDirectInputDevice2_Acquire(haptic->hwdata->device);
   300    if (FAILED(ret)) {
   302    if (FAILED(ret)) {
   301       DI_SetError("Acquiring DirectInput device",ret);
   303       DI_SetError("Acquiring DirectInput device",ret);