Mercurial > sdl-ios-xcode
comparison src/video/directfb/SDL_DirectFB_events.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 |
---|---|
88 void DirectFB_InitOSKeymap (_THIS) | 88 void DirectFB_InitOSKeymap (_THIS) |
89 { | 89 { |
90 int i; | 90 int i; |
91 | 91 |
92 /* Initialize the DirectFB key translation table */ | 92 /* Initialize the DirectFB key translation table */ |
93 for (i=0; i<SDL_TABLESIZE(keymap); ++i) | 93 for (i=0; i<SDL_arraysize(keymap); ++i) |
94 keymap[i] = SDLK_UNKNOWN; | 94 keymap[i] = SDLK_UNKNOWN; |
95 | 95 |
96 keymap[DIKI_A - DIKI_UNKNOWN] = SDLK_a; | 96 keymap[DIKI_A - DIKI_UNKNOWN] = SDLK_a; |
97 keymap[DIKI_B - DIKI_UNKNOWN] = SDLK_b; | 97 keymap[DIKI_B - DIKI_UNKNOWN] = SDLK_b; |
98 keymap[DIKI_C - DIKI_UNKNOWN] = SDLK_c; | 98 keymap[DIKI_C - DIKI_UNKNOWN] = SDLK_c; |