test/testhaptic.c
changeset 9147 6bf589c8d549
parent 9072 0c1a46c018aa
child 9356 e87d6e1e812a
     1.1 --- a/test/testhaptic.c	Wed Sep 17 14:47:42 2014 -0400
     1.2 +++ b/test/testhaptic.c	Wed Sep 17 14:49:36 2014 -0400
     1.3 @@ -122,7 +122,8 @@
     1.4          SDL_Log("   effect %d: Sine Wave\n", nefx);
     1.5          efx[nefx].type = SDL_HAPTIC_SINE;
     1.6          efx[nefx].periodic.period = 1000;
     1.7 -        efx[nefx].periodic.magnitude = 0x4000;
     1.8 +        efx[nefx].periodic.magnitude = -0x2000;    /* Negative magnitude and ...                      */
     1.9 +        efx[nefx].periodic.phase = 18000;          /* ... 180 degrees phase shift => cancel eachother */
    1.10          efx[nefx].periodic.length = 5000;
    1.11          efx[nefx].periodic.attack_length = 1000;
    1.12          efx[nefx].periodic.fade_length = 1000;