Changed haptic test program to use announced effect type.
This commit is contained in:
parent
663e2c37ae
commit
5966837f4a
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ main(int argc, char **argv)
|
|||
/* Now we'll try a SAWTOOTHUP */
|
||||
if (supported & SDL_HAPTIC_SAWTOOTHUP) {
|
||||
printf(" effect %d: Sawtooth Up\n", nefx);
|
||||
efx[nefx].type = SDL_HAPTIC_SQUARE;
|
||||
efx[nefx].type = SDL_HAPTIC_SAWTOOTHUP;
|
||||
efx[nefx].periodic.period = 500;
|
||||
efx[nefx].periodic.magnitude = 0x5000;
|
||||
efx[nefx].periodic.length = 5000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue