src/haptic/darwin/SDL_syshaptic.c
changeset 9070 8973a237f360
parent 8986 1c81316ac642
child 9147 6bf589c8d549
equal deleted inserted replaced
9069:16b5dda99337 9070:8973a237f360
   922             condition[i].lPositiveCoefficient =
   922             condition[i].lPositiveCoefficient =
   923                 CONVERT(hap_condition->right_coeff[i]);
   923                 CONVERT(hap_condition->right_coeff[i]);
   924             condition[i].lNegativeCoefficient =
   924             condition[i].lNegativeCoefficient =
   925                 CONVERT(hap_condition->left_coeff[i]);
   925                 CONVERT(hap_condition->left_coeff[i]);
   926             condition[i].dwPositiveSaturation =
   926             condition[i].dwPositiveSaturation =
   927                 CCONVERT(hap_condition->right_sat[i]);
   927                 CCONVERT(hap_condition->right_sat[i] / 2);
   928             condition[i].dwNegativeSaturation =
   928             condition[i].dwNegativeSaturation =
   929                 CCONVERT(hap_condition->left_sat[i]);
   929                 CCONVERT(hap_condition->left_sat[i] / 2);
   930             condition[i].lDeadBand = CCONVERT(hap_condition->deadband[i]);
   930             condition[i].lDeadBand = CCONVERT(hap_condition->deadband[i] / 2);
   931         }
   931         }
   932         dest->cbTypeSpecificParams = sizeof(FFCONDITION) * dest->cAxes;
   932         dest->cbTypeSpecificParams = sizeof(FFCONDITION) * dest->cAxes;
   933         dest->lpvTypeSpecificParams = condition;
   933         dest->lpvTypeSpecificParams = condition;
   934 
   934 
   935         /* Generics */
   935         /* Generics */