From 9682c8870b8ff5e4ac2e4c70b759f791c6f38c1f Mon Sep 17 00:00:00 2001 From: Jesse Hall Date: Mon, 9 Jul 2012 11:27:07 -0700 Subject: Import SDL release-1.2.15 Change-Id: I505c4aea24325cad475f217db5589814b4c75dbf --- distrib/sdl-1.2.15/test/testkeys.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 distrib/sdl-1.2.15/test/testkeys.c (limited to 'distrib/sdl-1.2.15/test/testkeys.c') diff --git a/distrib/sdl-1.2.15/test/testkeys.c b/distrib/sdl-1.2.15/test/testkeys.c new file mode 100644 index 0000000..e320c6d --- /dev/null +++ b/distrib/sdl-1.2.15/test/testkeys.c @@ -0,0 +1,25 @@ + +/* Print out all the keysyms we have, just to verify them */ + +#include +#include +#include +#include + +#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