test/testkeys.c
changeset 0 74212992fb08
child 1154 d93862a3d821
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/testkeys.c	Thu Apr 26 16:45:43 2001 +0000
     1.3 @@ -0,0 +1,23 @@
     1.4 +
     1.5 +/* Print out all the keysyms we have, just to verify them */
     1.6 +
     1.7 +#include <stdio.h>
     1.8 +#include <ctype.h>
     1.9 +
    1.10 +#include "SDL.h"
    1.11 +
    1.12 +int main(int argc, char *argv[])
    1.13 +{
    1.14 +	SDLKey key;
    1.15 +
    1.16 +	if ( SDL_Init(SDL_INIT_VIDEO) < 0 ) {
    1.17 +		fprintf(stderr, "Couldn't initialize SDL: %s\n",
    1.18 +							SDL_GetError());
    1.19 +		exit(1);
    1.20 +	}
    1.21 +	for ( key=SDLK_FIRST; key<SDLK_LAST; ++key ) {
    1.22 +		printf("Key #%d, \"%s\"\n", key, SDL_GetKeyName(key));
    1.23 +	}
    1.24 +	SDL_Quit();
    1.25 +	return(0);
    1.26 +}