2001-04-26 16:45:43 +00:00
|
|
|
|
2008-02-07 16:00:29 +00:00
|
|
|
/* Print out all the scancodes we have, just to verify them */
|
2001-04-26 16:45:43 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <ctype.h>
|
2005-10-03 08:12:32 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2001-04-26 16:45:43 +00:00
|
|
|
|
|
|
|
#include "SDL.h"
|
|
|
|
|
2006-07-10 21:04:37 +00:00
|
|
|
int
|
|
|
|
main(int argc, char *argv[])
|
2001-04-26 16:45:43 +00:00
|
|
|
{
|
2011-01-24 13:47:35 -06:00
|
|
|
SDL_ScanCode scancode;
|
2001-04-26 16:45:43 +00:00
|
|
|
|
2006-07-10 21:04:37 +00:00
|
|
|
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
|
|
|
|
fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError());
|
|
|
|
exit(1);
|
|
|
|
}
|
2008-02-07 16:00:29 +00:00
|
|
|
for (scancode = 0; scancode < SDL_NUM_SCANCODES; ++scancode) {
|
|
|
|
printf("Scancode #%d, \"%s\"\n", scancode,
|
|
|
|
SDL_GetScancodeName(scancode));
|
2006-07-10 21:04:37 +00:00
|
|
|
}
|
|
|
|
SDL_Quit();
|
|
|
|
return (0);
|
2001-04-26 16:45:43 +00:00
|
|
|
}
|