Mercurial > sdl-ios-xcode
comparison test/testwm.c @ 5223:572a73d71b5f
Sheena pointed out that "scancode" and "keysym" are single words and shouldn't be camel-cased.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 07 Feb 2011 09:37:11 -0800 |
parents | 25d4feb7c127 |
children |
comparison
equal
deleted
inserted
replaced
5222:9c0593fa27d6 | 5223:572a73d71b5f |
---|---|
208 printf(" CAPS"); | 208 printf(" CAPS"); |
209 if(mod & KMOD_MODE) | 209 if(mod & KMOD_MODE) |
210 printf(" MODE"); | 210 printf(" MODE"); |
211 } | 211 } |
212 | 212 |
213 static void PrintKey(const SDL_KeySym *sym, int pressed) | 213 static void PrintKey(const SDL_Keysym *sym, int pressed) |
214 { | 214 { |
215 /* Print the keycode, name and state */ | 215 /* Print the keycode, name and state */ |
216 if ( sym->sym ) { | 216 if ( sym->sym ) { |
217 printf("Key %s: %d-%s ", pressed ? "pressed" : "released", | 217 printf("Key %s: %d-%s ", pressed ? "pressed" : "released", |
218 sym->sym, SDL_GetKeyName(sym->sym)); | 218 sym->sym, SDL_GetKeyName(sym->sym)); |