test/testrumble.c
changeset 7437 964e8876ad3b
parent 6771 55337ff4256f
child 7517 965d57022c01
     1.1 --- a/test/testrumble.c	Sat Jul 13 21:06:56 2013 +0200
     1.2 +++ b/test/testrumble.c	Sat Jul 13 21:13:09 2013 +0200
     1.3 @@ -50,10 +50,6 @@
     1.4      int i;
     1.5      char *name;
     1.6      int index;
     1.7 -    SDL_HapticEffect efx[5];
     1.8 -    int id[5];
     1.9 -    int nefx;
    1.10 -    unsigned int supported;
    1.11  
    1.12      name = NULL;
    1.13      index = -1;
    1.14 @@ -130,7 +126,7 @@
    1.15      SDL_HapticRumbleStop(haptic);
    1.16      SDL_Delay(2000);
    1.17      printf("Playing 2 second rumble at 0.3 magnitude.\n");
    1.18 -    if (SDL_HapticRumblePlay(haptic, 0.3, 5000) != 0) {
    1.19 +    if (SDL_HapticRumblePlay(haptic, 0.3f, 5000) != 0) {
    1.20         printf("\nFailed to play rumble: %s\n", SDL_GetError() );
    1.21         return 1;
    1.22      }