Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11events.c @ 1379:c0a74f199ecf
Use only safe string functions
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 19 Feb 2006 23:46:34 +0000 |
parents | 19418e4422cb |
children | d910939febfa |
comparison
equal
deleted
inserted
replaced
1378:dc0e13e7e1ae | 1379:c0a74f199ecf |
---|---|
691 void X11_InitKeymap(void) | 691 void X11_InitKeymap(void) |
692 { | 692 { |
693 int i; | 693 int i; |
694 | 694 |
695 /* Odd keys used in international keyboards */ | 695 /* Odd keys used in international keyboards */ |
696 for ( i=0; i<SDL_TABLESIZE(ODD_keymap); ++i ) | 696 for ( i=0; i<SDL_arraysize(ODD_keymap); ++i ) |
697 ODD_keymap[i] = SDLK_UNKNOWN; | 697 ODD_keymap[i] = SDLK_UNKNOWN; |
698 | 698 |
699 /* Some of these might be mappable to an existing SDLK_ code */ | 699 /* Some of these might be mappable to an existing SDLK_ code */ |
700 ODD_keymap[XK_dead_grave&0xFF] = SDLK_COMPOSE; | 700 ODD_keymap[XK_dead_grave&0xFF] = SDLK_COMPOSE; |
701 ODD_keymap[XK_dead_acute&0xFF] = SDLK_COMPOSE; | 701 ODD_keymap[XK_dead_acute&0xFF] = SDLK_COMPOSE; |
727 #ifdef XK_ISO_Level3_Shift | 727 #ifdef XK_ISO_Level3_Shift |
728 ODD_keymap[XK_ISO_Level3_Shift&0xFF] = SDLK_MODE; /* "Alt Gr" key */ | 728 ODD_keymap[XK_ISO_Level3_Shift&0xFF] = SDLK_MODE; /* "Alt Gr" key */ |
729 #endif | 729 #endif |
730 | 730 |
731 /* Map the miscellaneous keys */ | 731 /* Map the miscellaneous keys */ |
732 for ( i=0; i<SDL_TABLESIZE(MISC_keymap); ++i ) | 732 for ( i=0; i<SDL_arraysize(MISC_keymap); ++i ) |
733 MISC_keymap[i] = SDLK_UNKNOWN; | 733 MISC_keymap[i] = SDLK_UNKNOWN; |
734 | 734 |
735 /* These X keysyms have 0xFF as the high byte */ | 735 /* These X keysyms have 0xFF as the high byte */ |
736 MISC_keymap[XK_BackSpace&0xFF] = SDLK_BACKSPACE; | 736 MISC_keymap[XK_BackSpace&0xFF] = SDLK_BACKSPACE; |
737 MISC_keymap[XK_Tab&0xFF] = SDLK_TAB; | 737 MISC_keymap[XK_Tab&0xFF] = SDLK_TAB; |