src/haptic/win32/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2613 b081c72b739c
parent 2612 63ea27a96a96
child 2614 3ee319d9800a
equal deleted inserted replaced
2612:63ea27a96a96 2613:b081c72b739c
   175    /* Copy the instance over, useful for creating devices. */
   175    /* Copy the instance over, useful for creating devices. */
   176    SDL_memcpy(&SDL_hapticlist[SDL_numhaptics].instance, pdidInstance,
   176    SDL_memcpy(&SDL_hapticlist[SDL_numhaptics].instance, pdidInstance,
   177          sizeof(DIDEVICEINSTANCE));
   177          sizeof(DIDEVICEINSTANCE));
   178 
   178 
   179    /* Open the device */
   179    /* Open the device */
   180    ret = IDirectInput_CreateDevice( dinput, &instance.guidInstance,
   180    ret = IDirectInput_CreateDevice( dinput, &pdidInstance.guidInstance,
   181                                     &device, NULL );
   181                                     &device, NULL );
   182    if (FAILED(ret)) {
   182    if (FAILED(ret)) {
   183       /* DI_SetError("Creating DirectInput device",ret); */
   183       /* DI_SetError("Creating DirectInput device",ret); */
   184       return DIENUM_CONTINUE;
   184       return DIENUM_CONTINUE;
   185    }
   185    }