test/testhaptic.c
changeset 9070 8973a237f360
parent 8741 d5b21f813734
child 9072 0c1a46c018aa
     1.1 --- a/test/testhaptic.c	Sat Aug 16 16:42:55 2014 -0400
     1.2 +++ b/test/testhaptic.c	Sat Aug 16 16:47:42 2014 -0400
     1.3 @@ -172,8 +172,8 @@
     1.4          efx[nefx].type = SDL_HAPTIC_SPRING;
     1.5          efx[nefx].condition.length = 5000;
     1.6          for (i = 0; i < SDL_HapticNumAxes(haptic); i++) {
     1.7 -            efx[nefx].condition.right_sat[i] = 0x7FFF;
     1.8 -            efx[nefx].condition.left_sat[i] = 0x7FFF;
     1.9 +            efx[nefx].condition.right_sat[i] = 0xFFFF;
    1.10 +            efx[nefx].condition.left_sat[i] = 0xFFFF;
    1.11              efx[nefx].condition.right_coeff[i] = 0x2000;
    1.12              efx[nefx].condition.left_coeff[i] = 0x2000;
    1.13              efx[nefx].condition.center[i] = 0x1000;     /* Displace the center for it to move. */
    1.14 @@ -191,10 +191,11 @@
    1.15          efx[nefx].type = SDL_HAPTIC_INERTIA;
    1.16          efx[nefx].condition.length = 5000;
    1.17          for (i = 0; i < SDL_HapticNumAxes(haptic); i++) {
    1.18 -            efx[nefx].condition.right_sat[i] = 0x7FFF;
    1.19 -            efx[nefx].condition.left_sat[i] = 0x7FFF;
    1.20 +            efx[nefx].condition.right_sat[i] = 0xFFFF;
    1.21 +            efx[nefx].condition.left_sat[i] = 0xFFFF;
    1.22              efx[nefx].condition.right_coeff[i] = 0x2000;
    1.23              efx[nefx].condition.left_coeff[i] = 0x2000;
    1.24 +            efx[nefx].condition.deadband[i] = 0x1000;    /* 1/16th of axis-range around the center is 'dead'. */
    1.25          }
    1.26          id[nefx] = SDL_HapticNewEffect(haptic, &efx[nefx]);
    1.27          if (id[nefx] < 0) {