Lines Matching refs:condition

753     SDL_HapticCondition *condition;  in SDL_SYS_ToFFEffect()  local
845 condition = &src->condition; in SDL_SYS_ToFFEffect()
848 if (condition->type == SDL_HAPTIC_SPRING) in SDL_SYS_ToFFEffect()
850 else if (condition->type == SDL_HAPTIC_DAMPER) in SDL_SYS_ToFFEffect()
852 else if (condition->type == SDL_HAPTIC_INERTIA) in SDL_SYS_ToFFEffect()
854 else if (condition->type == SDL_HAPTIC_FRICTION) in SDL_SYS_ToFFEffect()
859 dest->replay.length = (condition->length == SDL_HAPTIC_INFINITY) ? in SDL_SYS_ToFFEffect()
860 0 : CLAMP(condition->length); in SDL_SYS_ToFFEffect()
861 dest->replay.delay = CLAMP(condition->delay); in SDL_SYS_ToFFEffect()
864 dest->trigger.button = SDL_SYS_ToButton(condition->button); in SDL_SYS_ToFFEffect()
865 dest->trigger.interval = CLAMP(condition->interval); in SDL_SYS_ToFFEffect()
869 dest->u.condition[0].right_saturation = condition->right_sat[0]; in SDL_SYS_ToFFEffect()
870 dest->u.condition[0].left_saturation = condition->left_sat[0]; in SDL_SYS_ToFFEffect()
871 dest->u.condition[0].right_coeff = condition->right_coeff[0]; in SDL_SYS_ToFFEffect()
872 dest->u.condition[0].left_coeff = condition->left_coeff[0]; in SDL_SYS_ToFFEffect()
873 dest->u.condition[0].deadband = condition->deadband[0]; in SDL_SYS_ToFFEffect()
874 dest->u.condition[0].center = condition->center[0]; in SDL_SYS_ToFFEffect()
876 dest->u.condition[1].right_saturation = condition->right_sat[1]; in SDL_SYS_ToFFEffect()
877 dest->u.condition[1].left_saturation = condition->left_sat[1]; in SDL_SYS_ToFFEffect()
878 dest->u.condition[1].right_coeff = condition->right_coeff[1]; in SDL_SYS_ToFFEffect()
879 dest->u.condition[1].left_coeff = condition->left_coeff[1]; in SDL_SYS_ToFFEffect()
880 dest->u.condition[1].deadband = condition->deadband[1]; in SDL_SYS_ToFFEffect()
881 dest->u.condition[1].center = condition->center[1]; in SDL_SYS_ToFFEffect()