test/testhaptic.c
changeset 7263 8d69588e0269
parent 6771 55337ff4256f
child 7517 965d57022c01
equal deleted inserted replaced
7262:3c5f6170df8e 7263:8d69588e0269
   143         nefx++;
   143         nefx++;
   144     }
   144     }
   145     /* Now we'll try a SAWTOOTHUP */
   145     /* Now we'll try a SAWTOOTHUP */
   146     if (supported & SDL_HAPTIC_SAWTOOTHUP) {
   146     if (supported & SDL_HAPTIC_SAWTOOTHUP) {
   147         printf("   effect %d: Sawtooth Up\n", nefx);
   147         printf("   effect %d: Sawtooth Up\n", nefx);
   148         efx[nefx].type = SDL_HAPTIC_SQUARE;
   148         efx[nefx].type = SDL_HAPTIC_SAWTOOTHUP;
   149         efx[nefx].periodic.period = 500;
   149         efx[nefx].periodic.period = 500;
   150         efx[nefx].periodic.magnitude = 0x5000;
   150         efx[nefx].periodic.magnitude = 0x5000;
   151         efx[nefx].periodic.length = 5000;
   151         efx[nefx].periodic.length = 5000;
   152         efx[nefx].periodic.attack_length = 1000;
   152         efx[nefx].periodic.attack_length = 1000;
   153         efx[nefx].periodic.fade_length = 1000;
   153         efx[nefx].periodic.fade_length = 1000;