comparison src/video/ps2gs/SDL_gsevents.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
820 int i; 820 int i;
821 821
822 /* Initialize the Linux key translation table */ 822 /* Initialize the Linux key translation table */
823 823
824 /* First get the ascii keys and others not well handled */ 824 /* First get the ascii keys and others not well handled */
825 for (i=0; i<SDL_TABLESIZE(keymap); ++i) { 825 for (i=0; i<SDL_arraysize(keymap); ++i) {
826 switch(i) { 826 switch(i) {
827 /* These aren't handled by the x86 kernel keymapping (?) */ 827 /* These aren't handled by the x86 kernel keymapping (?) */
828 case SCANCODE_PRINTSCREEN: 828 case SCANCODE_PRINTSCREEN:
829 keymap[i] = SDLK_PRINT; 829 keymap[i] = SDLK_PRINT;
830 break; 830 break;
859 default: 859 default:
860 keymap[i] = KVAL(vga_keymap[0][i]); 860 keymap[i] = KVAL(vga_keymap[0][i]);
861 break; 861 break;
862 } 862 }
863 } 863 }
864 for (i=0; i<SDL_TABLESIZE(keymap); ++i) { 864 for (i=0; i<SDL_arraysize(keymap); ++i) {
865 switch(keymap_temp[i]) { 865 switch(keymap_temp[i]) {
866 case K_F1: keymap[i] = SDLK_F1; break; 866 case K_F1: keymap[i] = SDLK_F1; break;
867 case K_F2: keymap[i] = SDLK_F2; break; 867 case K_F2: keymap[i] = SDLK_F2; break;
868 case K_F3: keymap[i] = SDLK_F3; break; 868 case K_F3: keymap[i] = SDLK_F3; break;
869 case K_F4: keymap[i] = SDLK_F4; break; 869 case K_F4: keymap[i] = SDLK_F4; break;