src/haptic/windows/SDL_dinputhaptic.c
changeset 9070 8973a237f360
parent 8976 1a5d959d7b32
child 9071 8e04e17c7af3
     1.1 --- a/src/haptic/windows/SDL_dinputhaptic.c	Sat Aug 16 16:42:55 2014 -0400
     1.2 +++ b/src/haptic/windows/SDL_dinputhaptic.c	Sat Aug 16 16:47:42 2014 -0400
     1.3 @@ -763,10 +763,10 @@
     1.4              condition[i].lNegativeCoefficient =
     1.5                  CONVERT(hap_condition->left_coeff[i]);
     1.6              condition[i].dwPositiveSaturation =
     1.7 -                CONVERT(hap_condition->right_sat[i]);
     1.8 +                CONVERT(hap_condition->right_sat[i] / 2);
     1.9              condition[i].dwNegativeSaturation =
    1.10 -                CONVERT(hap_condition->left_sat[i]);
    1.11 -            condition[i].lDeadBand = CONVERT(hap_condition->deadband[i]);
    1.12 +                CONVERT(hap_condition->left_sat[i] / 2);
    1.13 +            condition[i].lDeadBand = CONVERT(hap_condition->deadband[i] / 2);
    1.14          }
    1.15          dest->cbTypeSpecificParams = sizeof(DICONDITION) * dest->cAxes;
    1.16          dest->lpvTypeSpecificParams = condition;