comparison src/video/windx5/SDL_dx5events.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
701 #define DIK_OEM_102 0x56 /* < > | on UK/Germany keyboards */ 701 #define DIK_OEM_102 0x56 /* < > | on UK/Germany keyboards */
702 #endif 702 #endif
703 int i; 703 int i;
704 704
705 /* Map the DIK scancodes to SDL keysyms */ 705 /* Map the DIK scancodes to SDL keysyms */
706 for ( i=0; i<SDL_TABLESIZE(DIK_keymap); ++i ) 706 for ( i=0; i<SDL_arraysize(DIK_keymap); ++i )
707 DIK_keymap[i] = 0; 707 DIK_keymap[i] = 0;
708 708
709 /* Defined DIK_* constants */ 709 /* Defined DIK_* constants */
710 DIK_keymap[DIK_ESCAPE] = SDLK_ESCAPE; 710 DIK_keymap[DIK_ESCAPE] = SDLK_ESCAPE;
711 DIK_keymap[DIK_1] = SDLK_1; 711 DIK_keymap[DIK_1] = SDLK_1;