Mercurial > sdl-ios-xcode
comparison src/video/ataricommon/SDL_biosevents.c @ 3854:f1816773a309 SDL-1.2
/me dumb, sizeof(keymap) != number of elements
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Thu, 07 Sep 2006 20:52:31 +0000 |
parents | 2405517b5eab |
children | bf1586b58ef2 |
comparison
equal
deleted
inserted
replaced
3853:c6d3c5549886 | 3854:f1816773a309 |
---|---|
72 | 72 |
73 SDL_memset(bios_currentkeyboard, 0, sizeof(bios_currentkeyboard)); | 73 SDL_memset(bios_currentkeyboard, 0, sizeof(bios_currentkeyboard)); |
74 SDL_memset(bios_previouskeyboard, 0, sizeof(bios_previouskeyboard)); | 74 SDL_memset(bios_previouskeyboard, 0, sizeof(bios_previouskeyboard)); |
75 | 75 |
76 /* Initialize keymap */ | 76 /* Initialize keymap */ |
77 for ( i=0; i<sizeof(keymap); i++ ) | 77 for ( i=0; i<ATARIBIOS_MAXKEYS; i++ ) |
78 keymap[i] = SDLK_UNKNOWN; | 78 keymap[i] = SDLK_UNKNOWN; |
79 | 79 |
80 /* Functions keys */ | 80 /* Functions keys */ |
81 for ( i = 0; i<10; i++ ) | 81 for ( i = 0; i<10; i++ ) |
82 keymap[SCANCODE_F1 + i] = SDLK_F1+i; | 82 keymap[SCANCODE_F1 + i] = SDLK_F1+i; |