dolphin/Externals/SDL/test/testkeys.c
Soren Jorvang 2db54798d7 Import SDL 1.2.14 and GLEW 1.5.4.
I am not replacing the following header files used by the Windows build,
as I don't have a Windows build setup to test. Please point the Windows
build at the header files inside these clean distribution packages and
garbage collect the duplicates: GLew/*.h and SDL/Include_1.2.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5711 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-06-15 23:31:13 +00:00

26 lines
472 B
C

/* Print out all the keysyms we have, just to verify them */
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.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);
}