comparison src/haptic/win32/SDL_syshaptic.c @ 2615:088907e9a2bb gsoc2008_force_feedback

Implemented SDL_SYS_HapticMouse on windows.
author Edgar Simo <bobbens@gmail.com>
date Wed, 06 Aug 2008 07:59:03 +0000
parents 3ee319d9800a
children a168397d6549
comparison
equal deleted inserted replaced
2614:3ee319d9800a 2615:088907e9a2bb
451 int 451 int
452 SDL_SYS_HapticMouse(void) 452 SDL_SYS_HapticMouse(void)
453 { 453 {
454 int i; 454 int i;
455 455
456 /* Grab the first mouse haptic device we find. */
456 for (i=0; i<SDL_numhaptics; i++) { 457 for (i=0; i<SDL_numhaptics; i++) {
457 } 458 if (SDL_hapticlist[i].capabilities.dwDevType == DIDEVTYPE_MOUSE ) {
459 return i;
460 }
461 }
462
458 return -1; 463 return -1;
459 } 464 }
460 465
461 466
462 /* 467 /*