test/testhaptic.c
changeset 7629 a0a3bd77cbc4
parent 7621 5caa5fb3deb6
child 7639 9406b7dd2f2d
equal deleted inserted replaced
7628:ebf5f6859e40 7629:a0a3bd77cbc4
   211             abort_execution();
   211             abort_execution();
   212         }
   212         }
   213         nefx++;
   213         nefx++;
   214     }
   214     }
   215 
   215 
   216     /* First we'll try a SINE effect. */
   216     /* Finally we'll try a left/right effect. */
   217     if (supported & SDL_HAPTIC_LEFTRIGHT) {
   217     if (supported & SDL_HAPTIC_LEFTRIGHT) {
   218         printf("   effect %d: Left/Right\n", nefx);
   218         printf("   effect %d: Left/Right\n", nefx);
   219         efx[nefx].type = SDL_HAPTIC_LEFTRIGHT;
   219         efx[nefx].type = SDL_HAPTIC_LEFTRIGHT;
   220         efx[nefx].leftright.length = 5000;
   220         efx[nefx].leftright.length = 5000;
   221         efx[nefx].leftright.large_magnitude = 0x3000;
   221         efx[nefx].leftright.large_magnitude = 0x3000;