Fixed compiling the keyboad iOS demo
authorSam Lantinga <slouken@libsdl.org>
Fri, 25 May 2012 18:21:22 -0400
changeset 6310 f830e73e2acf
parent 6309 53a0e9f5db8d
child 6311 4e5e46f43438
Fixed compiling the keyboad iOS demo
Xcode-iOS/Demos/src/keyboard.c
--- a/Xcode-iOS/Demos/src/keyboard.c	Fri May 25 18:21:10 2012 -0400
+++ b/Xcode-iOS/Demos/src/keyboard.c	Fri May 25 18:21:22 2012 -0400
@@ -35,9 +35,9 @@
 */
 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 */
+    SDL_Keymod mod;             /* what modifiers are allowed for the mapping */
     int index;                  /* what index in the font does the scancode map to */
 } fontMapping;
 
@@ -114,7 +114,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,8 +240,8 @@
     int index;                  /* index of last key we pushed in the bitmap font */
     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_Keymod mod;             /* key modifiers 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());