diff options
author | Sam Lantinga <slouken@lokigames.com> | 2001-04-26 16:45:43 +0000 |
---|---|---|
committer | Sam Lantinga <slouken@lokigames.com> | 2001-04-26 16:45:43 +0000 |
commit | 5d2015c7410ab14b2ab022451ddf6cd6d8612b42 (patch) | |
tree | 5ef8210ef050b558167c3483a85ad96961cdda68 /test/testkeys.c |
Initial revision
Diffstat (limited to 'test/testkeys.c')
-rw-r--r-- | test/testkeys.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/testkeys.c b/test/testkeys.c new file mode 100644 index 0000000000..42f931daa4 --- /dev/null +++ b/test/testkeys.c @@ -0,0 +1,23 @@ + +/* Print out all the keysyms we have, just to verify them */ + +#include <stdio.h> +#include <ctype.h> + +#include "SDL.h" + +int main(int argc, char *argv[]) +{ + SDLKey key; + + if ( SDL_Init(SDL_INIT_VIDEO) < 0 ) { + fprintf(stderr, "Couldn't initialize SDL: %s\n", + SDL_GetError()); + exit(1); + } + for ( key=SDLK_FIRST; key<SDLK_LAST; ++key ) { + printf("Key #%d, \"%s\"\n", key, SDL_GetKeyName(key)); + } + SDL_Quit(); + return(0); +} |