Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed compiling the keyboad iOS demo
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 25, 2012
1 parent 4668631 commit dc74dd2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Xcode-iOS/Demos/src/keyboard.c
Expand Up @@ -35,9 +35,9 @@ static SDL_Color bg_color = { 50, 50, 100, 255 }; /* color of background *
*/
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;

Expand Down Expand Up @@ -114,7 +114,7 @@ fontMapping map[TABLE_SIZE] = {
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++) {
Expand Down Expand Up @@ -240,8 +240,8 @@ main(int argc, char *argv[])
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());
Expand Down

0 comments on commit dc74dd2

Please sign in to comment.