comparison src/haptic/SDL_haptic.c @ 2515:030fc4375e63 gsoc2008_force_feedback

Added SDL_HapticNumEffectsPlaying().
author Edgar Simo <bobbens@gmail.com>
date Thu, 10 Jul 2008 17:16:11 +0000
parents 840e1b6325c0
children 37c13c12c878
comparison
equal deleted inserted replaced
2514:840e1b6325c0 2515:030fc4375e63
354 } 354 }
355 355
356 return haptic->neffects; 356 return haptic->neffects;
357 } 357 }
358 358
359
360 /*
361 * Returns the number of effects a haptic device can play.
362 */
363 int
364 SDL_HapticNumEffectsPlaying(SDL_Haptic * haptic)
365 {
366 if (!ValidHaptic(&haptic)) {
367 return -1;
368 }
369
370 return haptic->nplaying;
371 }
372
373
359 /* 374 /*
360 * Returns supported effects by the device. 375 * Returns supported effects by the device.
361 */ 376 */
362 unsigned int 377 unsigned int
363 SDL_HapticQuery(SDL_Haptic * haptic) 378 SDL_HapticQuery(SDL_Haptic * haptic)