Lines Matching refs:effects
357 if (haptic->effects[i].hweffect != NULL) { in SDL_HapticClose()
493 if (haptic->effects[i].hweffect == NULL) { in SDL_HapticNewEffect()
496 if (SDL_SYS_HapticNewEffect(haptic, &haptic->effects[i], effect) in SDL_HapticNewEffect()
501 SDL_memcpy(&haptic->effects[i].effect, effect, in SDL_HapticNewEffect()
535 if (data->type != haptic->effects[effect].effect.type) { in SDL_HapticUpdateEffect()
540 if (SDL_SYS_HapticUpdateEffect(haptic, &haptic->effects[effect], data) < in SDL_HapticUpdateEffect()
545 SDL_memcpy(&haptic->effects[effect].effect, data, in SDL_HapticUpdateEffect()
562 if (SDL_SYS_HapticRunEffect(haptic, &haptic->effects[effect], iterations) in SDL_HapticRunEffect()
581 if (SDL_SYS_HapticStopEffect(haptic, &haptic->effects[effect]) < 0) { in SDL_HapticStopEffect()
599 if (haptic->effects[effect].hweffect == NULL) { in SDL_HapticDestroyEffect()
603 SDL_SYS_HapticDestroyEffect(haptic, &haptic->effects[effect]); in SDL_HapticDestroyEffect()
620 return SDL_SYS_HapticGetEffectStatus(haptic, &haptic->effects[effect]); in SDL_HapticGetEffectStatus()