comparison src/haptic/win32/SDL_syshaptic.c @ 2631:a0845d7f4398 gsoc2008_force_feedback

Removed TODO. Updated comments.
author Edgar Simo <bobbens@gmail.com>
date Wed, 06 Aug 2008 11:02:13 +0000
parents 43a0416b3707
children 269ba4f28d0e
comparison
equal deleted inserted replaced
2630:776f7f800131 2631:a0845d7f4398
467 467
468 /* Status is always supported. */ 468 /* Status is always supported. */
469 haptic->supported |= SDL_HAPTIC_STATUS; 469 haptic->supported |= SDL_HAPTIC_STATUS;
470 470
471 /* Check maximum effects. */ 471 /* Check maximum effects. */
472 haptic->neffects = 128; /* TODO actually figure this out. */ 472 haptic->neffects = 128; /* This is not actually supported as thus under windows,
473 haptic->nplaying = 128; 473 there is no way to tell the number of EFFECTS that a
474 device can hold, so we'll just use a "random" number
475 instead and put warnings in SDL_haptic.h */
476 haptic->nplaying = 128; /* Even more impossible to get this then neffects. */
474 477
475 /* Prepare effects memory. */ 478 /* Prepare effects memory. */
476 haptic->effects = (struct haptic_effect *) 479 haptic->effects = (struct haptic_effect *)
477 SDL_malloc(sizeof(struct haptic_effect) * haptic->neffects); 480 SDL_malloc(sizeof(struct haptic_effect) * haptic->neffects);
478 if (haptic->effects == NULL) { 481 if (haptic->effects == NULL) {