Mercurial > sdl-ios-xcode
comparison test/checkkeys.c @ 5131:2c500f37abcf
merged: might need to check main.c in the iOS template to make sure no changes were abandoned.
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Tue, 01 Feb 2011 00:37:02 -0800 |
parents | 25d4feb7c127 |
children | 572a73d71b5f |
comparison
equal
deleted
inserted
replaced
5078:067973aec4d8 | 5131:2c500f37abcf |
---|---|
51 if (mod & KMOD_MODE) | 51 if (mod & KMOD_MODE) |
52 printf(" MODE"); | 52 printf(" MODE"); |
53 } | 53 } |
54 | 54 |
55 static void | 55 static void |
56 PrintKey(SDL_keysym * sym, SDL_bool pressed, SDL_bool repeat) | 56 PrintKey(SDL_KeySym * sym, SDL_bool pressed, SDL_bool repeat) |
57 { | 57 { |
58 /* Print the keycode, name and state */ | 58 /* Print the keycode, name and state */ |
59 if (sym->sym) { | 59 if (sym->sym) { |
60 printf("Key %s: scancode %d = %s, keycode 0x%08X = %s ", | 60 printf("Key %s: scancode %d = %s, keycode 0x%08X = %s ", |
61 pressed ? "pressed " : "released", | 61 pressed ? "pressed " : "released", |