/[pcsx2_0.9.7]/trunk/3rdparty/SDL-1.3.0-5387/test/testkeys.c
ViewVC logotype

Contents of /trunk/3rdparty/SDL-1.3.0-5387/test/testkeys.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 401 - (show annotations) (download)
Fri Feb 25 17:31:09 2011 UTC (9 years, 9 months ago) by william
File MIME type: text/plain
File size: 567 byte(s)
Auto Commited Import of: pcsx2-0.9.7-DEBUG (upstream: v0.9.7.4358 local: v0.9.7.313-latest) in ./trunk
1
2 /* Print out all the scancodes we have, just to verify them */
3
4 #include <stdio.h>
5 #include <ctype.h>
6 #include <stdlib.h>
7 #include <string.h>
8
9 #include "SDL.h"
10
11 int
12 main(int argc, char *argv[])
13 {
14 SDL_Scancode scancode;
15
16 if (SDL_Init(SDL_INIT_VIDEO) < 0) {
17 fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError());
18 exit(1);
19 }
20 for (scancode = 0; scancode < SDL_NUM_SCANCODES; ++scancode) {
21 printf("Scancode #%d, \"%s\"\n", scancode,
22 SDL_GetScancodeName(scancode));
23 }
24 SDL_Quit();
25 return (0);
26 }

  ViewVC Help
Powered by ViewVC 1.1.22