test/testrumble.c
changeset 6771 55337ff4256f
parent 5535 96594ac5fd1a
child 7437 964e8876ad3b
equal deleted inserted replaced
6770:9a111d2aa992 6771:55337ff4256f
    24 
    24 
    25 /*
    25 /*
    26  * includes
    26  * includes
    27  */
    27  */
    28 #include <stdlib.h>
    28 #include <stdlib.h>
    29 #include "SDL.h"
       
    30 #include "SDL_haptic.h"
       
    31 
       
    32 #include <stdio.h>              /* printf */
    29 #include <stdio.h>              /* printf */
    33 #include <string.h>             /* strstr */
    30 #include <string.h>             /* strstr */
    34 #include <ctype.h>              /* isdigit */
    31 #include <ctype.h>              /* isdigit */
    35 
    32 
       
    33 #include "SDL.h"
       
    34 
       
    35 #ifndef SDL_HAPTIC_DISABLED
       
    36 
       
    37 #include "SDL_haptic.h"
    36 
    38 
    37 static SDL_Haptic *haptic;
    39 static SDL_Haptic *haptic;
    38 
    40 
    39 
    41 
    40 /**
    42 /**
   140     SDL_Quit();
   142     SDL_Quit();
   141 
   143 
   142     return 0;
   144     return 0;
   143 }
   145 }
   144 
   146 
       
   147 #else
       
   148 
       
   149 int
       
   150 main(int argc, char *argv[])
       
   151 {
       
   152     fprintf(stderr, "SDL compiled without Haptic support.\n");
       
   153     exit(1);
       
   154 }
       
   155 
       
   156 #endif