test/testkeys.c
branchSDL-1.3
changeset 1662 782fd950bd46
parent 1154 d93862a3d821
child 1668 4da1ee79c9af
     1.1 --- a/test/testkeys.c	Sun May 21 17:27:13 2006 +0000
     1.2 +++ b/test/testkeys.c	Sun May 28 13:04:16 2006 +0000
     1.3 @@ -8,18 +8,18 @@
     1.4  
     1.5  #include "SDL.h"
     1.6  
     1.7 -int main(int argc, char *argv[])
     1.8 +int
     1.9 +main (int argc, char *argv[])
    1.10  {
    1.11 -	SDLKey key;
    1.12 +    SDLKey key;
    1.13  
    1.14 -	if ( SDL_Init(SDL_INIT_VIDEO) < 0 ) {
    1.15 -		fprintf(stderr, "Couldn't initialize SDL: %s\n",
    1.16 -							SDL_GetError());
    1.17 -		exit(1);
    1.18 -	}
    1.19 -	for ( key=SDLK_FIRST; key<SDLK_LAST; ++key ) {
    1.20 -		printf("Key #%d, \"%s\"\n", key, SDL_GetKeyName(key));
    1.21 -	}
    1.22 -	SDL_Quit();
    1.23 -	return(0);
    1.24 +    if (SDL_Init (SDL_INIT_VIDEO) < 0) {
    1.25 +        fprintf (stderr, "Couldn't initialize SDL: %s\n", SDL_GetError ());
    1.26 +        exit (1);
    1.27 +    }
    1.28 +    for (key = SDLK_FIRST; key < SDLK_LAST; ++key) {
    1.29 +        printf ("Key #%d, \"%s\"\n", key, SDL_GetKeyName (key));
    1.30 +    }
    1.31 +    SDL_Quit ();
    1.32 +    return (0);
    1.33  }