mirror of
https://github.com/yawut/SDL.git
synced 2026-07-26 21:20:56 -05:00
Changed haptic test program to use announced effect type.
This commit is contained in:
parent
aa1e431779
commit
0fa5e74ce1
|
|
@ -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…
Reference in New Issue
Block a user