Mercurial > sdl-ios-xcode
diff src/haptic/linux/SDL_syshaptic.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 | 55fd9103a330 |
children | 37c13c12c878 |
line wrap: on
line diff
--- a/src/haptic/linux/SDL_syshaptic.c Thu Jul 10 16:42:43 2008 +0000 +++ b/src/haptic/linux/SDL_syshaptic.c Thu Jul 10 17:16:11 2008 +0000 @@ -260,6 +260,7 @@ SDL_SetError("Haptic: Unable to query device memory: %s", strerror(errno)); goto open_err; } + haptic->nplaying = haptic->neffects; /* Linux makes no distinction. */ haptic->effects = (struct haptic_effect *) SDL_malloc(sizeof(struct haptic_effect) * haptic->neffects); if (haptic->effects == NULL) {