test/testgamecontroller.c
changeset 6771 55337ff4256f
parent 6690 9548c8a58103
child 6914 8a9915ab24f0
equal deleted inserted replaced
6770:9a111d2aa992 6771:55337ff4256f
    15 #include <stdio.h>
    15 #include <stdio.h>
    16 #include <stdlib.h>
    16 #include <stdlib.h>
    17 #include <string.h>
    17 #include <string.h>
    18 
    18 
    19 #include "SDL.h"
    19 #include "SDL.h"
       
    20 
       
    21 #ifndef SDL_JOYSTICK_DISABLED
    20 
    22 
    21 #ifdef __IPHONEOS__
    23 #ifdef __IPHONEOS__
    22 #define SCREEN_WIDTH	320
    24 #define SCREEN_WIDTH	320
    23 #define SCREEN_HEIGHT	480
    25 #define SCREEN_HEIGHT	480
    24 #else
    26 #else
   201 	}
   203 	}
   202     SDL_QuitSubSystem(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_GAMECONTROLLER );
   204     SDL_QuitSubSystem(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_GAMECONTROLLER );
   203 
   205 
   204     return (0);
   206     return (0);
   205 }
   207 }
       
   208 
       
   209 #else
       
   210 
       
   211 int
       
   212 main(int argc, char *argv[])
       
   213 {
       
   214     fprintf(stderr, "SDL compiled without Joystick support.\n");
       
   215     exit(1);
       
   216 }
       
   217 
       
   218 #endif