Mercurial > sdl-ios-xcode
diff Xcode-iPhoneOS/Demos/src/keyboard.c @ 5083:25d4feb7c127
Renamed SDL_keysym to SDL_KeySym
Renamed SDL_scancode to SDL_ScanCode
Added #defines to SDL_compat.h
author | krogoway |
---|---|
date | Mon, 24 Jan 2011 13:47:35 -0600 |
parents | 64ce267332c6 |
children |
line wrap: on
line diff
--- a/Xcode-iPhoneOS/Demos/src/keyboard.c Sun Jan 23 21:55:04 2011 -0800 +++ b/Xcode-iPhoneOS/Demos/src/keyboard.c Mon Jan 24 13:47:35 2011 -0600 @@ -34,7 +34,7 @@ */ typedef struct { - SDL_scancode scancode; /* scancode of the key we want to map */ + SDL_ScanCode scancode; /* scancode of the key we want to map */ int allow_no_mod; /* is the map valid if the key has no modifiers? */ SDLMod mod; /* what modifiers are allowed for the mapping */ int index; /* what index in the font does the scancode map to */ @@ -103,7 +103,7 @@ }; /* - This function maps an SDL_keysym to an index in the bitmap font. + This function maps an SDL_KeySym to an index in the bitmap font. It does so by scanning through the font mapping table one entry at a time. @@ -113,7 +113,7 @@ If there is no entry for the key, -1 is returned */ int -keyToIndex(SDL_keysym key) +keyToIndex(SDL_KeySym key) { int i, index = -1; for (i = 0; i < TABLE_SIZE; i++) { @@ -240,7 +240,7 @@ SDL_Window *window; SDL_Event event; /* last event received */ SDLMod mod; /* key modifiers of last key we pushed */ - SDL_scancode scancode; /* scancode of last key we pushed */ + SDL_ScanCode scancode; /* scancode of last key we pushed */ if (SDL_Init(SDL_INIT_VIDEO) < 0) { printf("Error initializing SDL: %s", SDL_GetError());