test/testjoystick.c
changeset 7478 0d02f6a323f5
parent 7191 75360622e65f
child 7517 965d57022c01
equal deleted inserted replaced
7477:a73210626b97 7478:0d02f6a323f5
    48     int i;
    48     int i;
    49 
    49 
    50     /* Create a window to display joystick axis position */
    50     /* Create a window to display joystick axis position */
    51     window = SDL_CreateWindow("Joystick Test", SDL_WINDOWPOS_CENTERED,
    51     window = SDL_CreateWindow("Joystick Test", SDL_WINDOWPOS_CENTERED,
    52                               SDL_WINDOWPOS_CENTERED, SCREEN_WIDTH,
    52                               SDL_WINDOWPOS_CENTERED, SCREEN_WIDTH,
    53                               SCREEN_HEIGHT, SDL_WINDOW_SHOWN);
    53                               SCREEN_HEIGHT, 0);
    54     if (window == NULL) {
    54     if (window == NULL) {
    55         fprintf(stderr, "Couldn't create window: %s\n", SDL_GetError());
    55         fprintf(stderr, "Couldn't create window: %s\n", SDL_GetError());
    56         return SDL_FALSE;
    56         return SDL_FALSE;
    57     }
    57     }
    58 
    58