mirror of
https://github.com/yawut/SDL.git
synced 2026-08-22 16:55:29 -05:00
Changed haptic test program to use announced effect type.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user